diff options
author | Gabda <gabda87@gmail.com> | 2019-02-09 00:05:25 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-02-08 23:05:25 +0000 |
commit | 37bb2c930828260cd28365c8d96befea096bacd6 (patch) | |
tree | 0fe5efa02b36db2a08440c264a1d1a9a0494115f /src/tgp.cpp | |
parent | 5e4f76f2f9ad105f619003657229b3bbd87ba678 (diff) | |
download | openttd-37bb2c930828260cd28365c8d96befea096bacd6.tar.xz |
Codechange: Make the style of MakeVoid calls uniform (#7192)
Diffstat (limited to 'src/tgp.cpp')
-rw-r--r-- | src/tgp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tgp.cpp b/src/tgp.cpp index 02621f127..4dbb79aa8 100644 --- a/src/tgp.cpp +++ b/src/tgp.cpp @@ -995,8 +995,8 @@ void GenerateTerrainPerlin() /* First make sure the tiles at the north border are void tiles if needed. */ if (_settings_game.construction.freeform_edges) { - for (int y = 0; y < _height_map.size_y - 1; y++) MakeVoid(_height_map.size_x * y); - for (int x = 0; x < _height_map.size_x; x++) MakeVoid(x); + for (uint x = 0; x < MapSizeX(); x++) MakeVoid(TileXY(x, 0)); + for (uint y = 0; y < MapSizeY(); y++) MakeVoid(TileXY(0, y)); } int max_height = H2I(TGPGetMaxHeight()); |