(svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code

This commit is contained in:
rubidium
2011-11-04 10:31:13 +00:00
parent 5d7acba5d3
commit 25b3869c3b
3 changed files with 9 additions and 9 deletions

View File

@@ -1935,7 +1935,7 @@ static inline bool CheckBuildHouseSameZ(TileIndex tile, TownID town, uint z, boo
if (!CanBuildHouseHere(tile, town, noslope)) return false;
/* if building on slopes is allowed, there will be flattening foundation (to tile max z) */
if (GetTileMaxPixelZ(tile) != z) return false;
if (GetTileMaxZ(tile) != z) return false;
return true;
}
@@ -2139,7 +2139,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
houses[num++] = (HouseID)i;
}
uint maxz = GetTileMaxPixelZ(tile);
uint maxz = GetTileMaxZ(tile);
TileIndex baseTile = tile;
while (probability_max > 0) {