* Copy bits from powerGridMap to the #PWRBIT in the map for all zones in the * world. */
| 309 | * world. |
| 310 | */ |
| 311 | void Micropolis::doNilPower() |
| 312 | { |
| 313 | short x, y; |
| 314 | |
| 315 | for (x = 0; x < WORLD_W; x++) { |
| 316 | for (y = 0; y < WORLD_H; y++) { |
| 317 | MapValue z = map[x][y]; |
| 318 | if (z & ZONEBIT) { |
| 319 | setZonePower(Position(x, y)); |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | |
| 326 | /** Decrease traffic memory */ |