Draw pollution overlay at the small map */
| 564 | |
| 565 | /** Draw pollution overlay at the small map */ |
| 566 | void Micropolis::drawPollutionMap() |
| 567 | { |
| 568 | short x, y; |
| 569 | |
| 570 | drawAll(view); |
| 571 | |
| 572 | for (x = 0; x < WORLD_W; x += pollutionDensityMap.MAP_BLOCKSIZE) { |
| 573 | for (y = 0; y < WORLD_H; y += pollutionDensityMap.MAP_BLOCKSIZE) { |
| 574 | maybeDrawRect( |
| 575 | getCI(10 + pollutionDensityMap.worldGet(x, y)), |
| 576 | x * 3, |
| 577 | y * 3, |
| 578 | 3 * pollutionDensityMap.MAP_BLOCKSIZE, |
| 579 | 3 * pollutionDensityMap.MAP_BLOCKSIZE); |
| 580 | } |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | |
| 585 | /** Draw crime overlay at the small map */ |