| 836 | } |
| 837 | |
| 838 | void InitializeLandscape() |
| 839 | { |
| 840 | for (uint y = _settings_game.construction.freeform_edges ? 1 : 0; y < Map::MaxY(); y++) { |
| 841 | for (uint x = _settings_game.construction.freeform_edges ? 1 : 0; x < Map::MaxX(); x++) { |
| 842 | MakeClear(TileXY(x, y), CLEAR_GRASS, 3); |
| 843 | SetTileHeight(TileXY(x, y), 0); |
| 844 | SetTropicZone(TileXY(x, y), TROPICZONE_NORMAL); |
| 845 | ClearBridgeMiddle(TileXY(x, y)); |
| 846 | } |
| 847 | } |
| 848 | |
| 849 | for (uint x = 0; x < Map::SizeX(); x++) MakeVoid(TileXY(x, Map::MaxY())); |
| 850 | for (uint y = 0; y < Map::SizeY(); y++) MakeVoid(TileXY(Map::MaxX(), y)); |
| 851 | } |
| 852 | |
| 853 | static const uint8_t _genterrain_tbl_1[5] = { 10, 22, 33, 37, 4 }; |
| 854 | static const uint8_t _genterrain_tbl_2[5] = { 0, 0, 0, 0, 33 }; |
no test coverage detected