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

Method clearUnnatural

MicropolisCore/src/MicropolisEngine/src/generate.cpp:178–189  ·  view source on GitHub ↗

Clear everything from all land */

Source from the content-addressed store, hash-verified

176
177/** Clear everything from all land */
178void Micropolis::clearUnnatural()
179{
180 short x, y;
181
182 for (x = 0; x < WORLD_W; x++) {
183 for (y = 0; y < WORLD_H; y++) {
184 if (map[x][y] > WOODS) {
185 map[x][y] = DIRT;
186 }
187 }
188 }
189}
190
191/**
192 * Construct a plain island as world, surrounded by 5 tiles of river.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected