Codechange: Make the style of MakeVoid calls uniform (#7192)

This commit is contained in:
Gabda
2019-02-09 00:05:25 +01:00
committed by Charles Pigott
parent 5e4f76f2f9
commit 37bb2c9308
5 changed files with 17 additions and 24 deletions

View File

@@ -204,10 +204,8 @@ static void UpdateCurrencies()
*/
static void UpdateVoidTiles()
{
uint i;
for (i = 0; i < MapMaxY(); ++i) MakeVoid(i * MapSizeX() + MapMaxX());
for (i = 0; i < MapSizeX(); ++i) MakeVoid(MapSizeX() * MapMaxY() + i);
for (uint x = 0; x < MapSizeX(); x++) MakeVoid(TileXY(x, MapMaxY()));
for (uint y = 0; y < MapSizeY(); y++) MakeVoid(TileXY(MapMaxX(), y));
}
static inline RailType UpdateRailType(RailType rt, RailType min)