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

Method clearMap

MicropolisCore/src/MicropolisEngine/src/generate.cpp:165–174  ·  view source on GitHub ↗

Clear the whole world to ::DIRT tiles */

Source from the content-addressed store, hash-verified

163
164/** Clear the whole world to ::DIRT tiles */
165void Micropolis::clearMap()
166{
167 short x, y;
168
169 for (x = 0; x < WORLD_W; x++) {
170 for (y = 0; y < WORLD_H; y++) {
171 map[x][y] = DIRT;
172 }
173 }
174}
175
176
177/** Clear everything from all land */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected