summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-13 21:40:50 +0000
committerfrosch <frosch@openttd.org>2012-11-13 21:40:50 +0000
commitb518f1342c26275857b97c2593c4e7ff4734f58c (patch)
tree31415cd99d7b3f8fe379fe82819008a424124dbe /src
parent752382ecd889b54f54e9ddee9e21fd888bd3fe08 (diff)
downloadopenttd-b518f1342c26275857b97c2593c4e7ff4734f58c.tar.xz
(svn r24720) -Fix (r24715): Comparison of different height units.
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 36e359b05..ae9727c4c 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2591,7 +2591,7 @@ static bool SplitGroundSpriteForOverlay(const TileInfo *ti, SpriteID *ground, Ra
/* Decide snow/desert from tile */
switch (_settings_game.game_creation.landscape) {
case LT_ARCTIC:
- snow_desert = ti->z > GetSnowLine();
+ snow_desert = (uint)ti->z > GetSnowLine() * TILE_HEIGHT;
break;
case LT_TROPIC: