Draw traffic density overlay at the small map */
| 543 | |
| 544 | /** Draw traffic density overlay at the small map */ |
| 545 | void Micropolis::drawTrafficDensityMap() |
| 546 | { |
| 547 | short x; |
| 548 | short y; |
| 549 | |
| 550 | drawLilTransMap(); |
| 551 | |
| 552 | for (x = 0; x < WORLD_W; x += trafficDensityMap.MAP_BLOCKSIZE) { |
| 553 | for (y = 0; y < WORLD_H; y += trafficDensityMap.MAP_BLOCKSIZE) { |
| 554 | maybeDrawRect( |
| 555 | getCI(trafficDensityMap.worldGet(x, y)), |
| 556 | x * 3, |
| 557 | y * 3, |
| 558 | 3 * trafficDensityMap.MAP_BLOCKSIZE, |
| 559 | 3 * trafficDensityMap.MAP_BLOCKSIZE); |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | |
| 565 | /** Draw pollution overlay at the small map */ |