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

Method smoothTrees

MicropolisCore/src/MicropolisEngine/src/generate.cpp:406–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404
405
406void Micropolis::smoothTrees()
407{
408 short x, y;
409 for (x = 0; x < WORLD_W; x++) {
410 for (y = 0; y < WORLD_H; y++) {
411 if (isTree(map[x][y])) {
412 smoothTreesAt(x, y, false);
413 }
414 }
415 }
416}
417
418/** Temporary function to prevent breaking a lot of code. */
419void Micropolis::smoothTreesAt(int x, int y, bool preserve)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected