summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-09-17 20:56:28 +0000
committerdominik <dominik@openttd.org>2004-09-17 20:56:28 +0000
commit894bb262adf7cc96880a472d4e6c82d68d88cea2 (patch)
treecbd07fc376dc68a36d5e50342b66326f8d617414 /rail_cmd.c
parentebc18e3957ceaf2c3fdd208a3ad6590875caf8de (diff)
downloadopenttd-894bb262adf7cc96880a472d4e6c82d68d88cea2.tar.xz
(svn r289) Fix: Checkpoints on snow have correct ground now
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 2546651c8..3965322f9 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1526,8 +1526,8 @@ static void DrawTile_Track(TileInfo *ti)
if (image & 0x8000) image = (image & 0x7FFF) + tracktype_offs;
// adjust ground tile for desert
- // (don't adjust for arctic, because snow in depots looks weird)
- if ((_map2[ti->tile] & RAIL_MAP2LO_GROUND_MASK)==RAIL_GROUND_ICE_DESERT && _opt.landscape == LT_DESERT)
+ // (don't adjust for arctic depots, because snow in depots looks weird)
+ if ((_map2[ti->tile] & RAIL_MAP2LO_GROUND_MASK)==RAIL_GROUND_ICE_DESERT && (_opt.landscape == LT_DESERT || type>=4))
{
if(image!=3981)
image += 26; // tile with tracks