summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-03-22 03:42:43 +0000
committerbelugas <belugas@openttd.org>2007-03-22 03:42:43 +0000
commit691f8578fd4ea12c372534c367312ee7b8763c39 (patch)
tree7d05afaad21b690abc8c07d95e1f62206b11bccd /src/rail_cmd.cpp
parent829822768516b017f1962e08ce14b0586575c92f (diff)
downloadopenttd-691f8578fd4ea12c372534c367312ee7b8763c39.tar.xz
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 6a3f0a043..ed6f39649 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1294,7 +1294,7 @@ static void DrawTile_Track(TileInfo *ti)
// adjust ground tile for desert
// don't adjust for snow, because snow in depots looks weird
- if (IsSnowRailGround(ti->tile) && _opt.landscape == LT_DESERT) {
+ if (IsSnowRailGround(ti->tile) && _opt.landscape == LT_TROPIC) {
if (image != SPR_FLAT_GRASS_TILE) {
image += rti->snow_offset; // tile with tracks
} else {
@@ -1738,14 +1738,14 @@ static void TileLoop_Track(TileIndex tile)
RailGroundType new_ground;
switch (_opt.landscape) {
- case LT_HILLY:
+ case LT_ARCTIC:
if (GetTileZ(tile) > GetSnowLine()) {
new_ground = RAIL_GROUND_ICE_DESERT;
goto set_ground;
}
break;
- case LT_DESERT:
+ case LT_TROPIC:
if (GetTropicZone(tile) == TROPICZONE_DESERT) {
new_ground = RAIL_GROUND_ICE_DESERT;
goto set_ground;