MCPcopy Create free account
hub / github.com/SimHacker/micropolis / doNilPower

Method doNilPower

MicropolisCore/src/MicropolisEngine/src/simulate.cpp:311–323  ·  view source on GitHub ↗

* Copy bits from powerGridMap to the #PWRBIT in the map for all zones in the * world. */

Source from the content-addressed store, hash-verified

309 * world.
310 */
311void 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 */

Callers

nothing calls this directly

Calls 1

PositionClass · 0.70

Tested by

no test coverage detected