summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 10:25:58 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 10:25:58 +0000
commit69162621d81c82b832cccc8d59179fc0e4472af2 (patch)
tree84b0875823153321225331b2a4a5862a60fdc345 /src/town_gui.cpp
parentb167c0a3967a62b4cbe98a12f2c4d932ee8df510 (diff)
downloadopenttd-69162621d81c82b832cccc8d59179fc0e4472af2.tar.xz
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index f5b5d0fd0..85763f6b1 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -380,8 +380,8 @@ public:
uint cargo_needed_for_growth = 0;
switch (_settings_game.game_creation.landscape) {
case LT_ARCTIC:
- if (TilePixelHeight(this->town->xy) >= LowestSnowLine()) cargo_needed_for_growth = 1;
- if (TilePixelHeight(this->town->xy) < GetSnowLine()) required_text = STR_TOWN_VIEW_CARGO_FOR_TOWNGROWTH_REQUIRED_WINTER;
+ if (TileHeight(this->town->xy) >= LowestSnowLine()) cargo_needed_for_growth = 1;
+ if (TileHeight(this->town->xy) < GetSnowLine()) required_text = STR_TOWN_VIEW_CARGO_FOR_TOWNGROWTH_REQUIRED_WINTER;
break;
case LT_TROPIC:
@@ -493,7 +493,7 @@ public:
switch (_settings_game.game_creation.landscape) {
case LT_ARCTIC:
- if (TilePixelHeight(this->town->xy) >= LowestSnowLine()) aimed_height += 2 * FONT_HEIGHT_NORMAL;
+ if (TileHeight(this->town->xy) >= LowestSnowLine()) aimed_height += 2 * FONT_HEIGHT_NORMAL;
break;
case LT_TROPIC: