| 404 | |
| 405 | |
| 406 | void 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. */ |
| 419 | void Micropolis::smoothTreesAt(int x, int y, bool preserve) |
nothing calls this directly
no outgoing calls
no test coverage detected