diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:25:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:25:58 +0000 |
commit | 69162621d81c82b832cccc8d59179fc0e4472af2 (patch) | |
tree | 84b0875823153321225331b2a4a5862a60fdc345 /src/town_cmd.cpp | |
parent | b167c0a3967a62b4cbe98a12f2c4d932ee8df510 (diff) | |
download | openttd-69162621d81c82b832cccc8d59179fc0e4472af2.tar.xz |
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index bfaee7498..e13bd9daf 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2096,7 +2096,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile) if (!CanBuildHouseHere(tile, t->index, false)) return false; uint z; - Slope slope = GetTilePixelSlope(tile, &z); + Slope slope = GetTileSlope(tile, &z); /* Get the town zone type of the current tile, as well as the climate. * This will allow to easily compare with the specs of the new house to build */ @@ -2779,7 +2779,7 @@ static void UpdateTownGrowRate(Town *t) } if (_settings_game.game_creation.landscape == LT_ARCTIC) { - if (TilePixelHeight(t->xy) >= GetSnowLine() && t->act_food == 0 && t->population > 90) return; + if (TileHeight(t->xy) >= GetSnowLine() && t->act_food == 0 && t->population > 90) return; } else if (_settings_game.game_creation.landscape == LT_TROPIC) { if (GetTropicZone(t->xy) == TROPICZONE_DESERT && (t->act_food == 0 || t->act_water == 0) && t->population > 60) return; |