summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-12 12:22:43 +0000
committercelestar <celestar@openttd.org>2006-04-12 12:22:43 +0000
commit0b16a2d41bdff7f8c21c5a943691ab7587001e11 (patch)
tree67e201f8d3ecfd09142ad8a842818cf751fd6649
parentc08ed855f373b4aaa5d87632207feadead92799f (diff)
downloadopenttd-0b16a2d41bdff7f8c21c5a943691ab7587001e11.tar.xz
(svn r4381) -Codechange: Forgot an occurence for rail ground types
-rw-r--r--rail_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index a150286b1..2d17af000 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1356,8 +1356,7 @@ static void DrawTile_Track(TileInfo *ti)
// adjust ground tile for desert
// (don't adjust for arctic depots, because snow in depots looks weird)
// type >= 4 means waypoints
- if ((_m[ti->tile].m4 & RAIL_MAP2LO_GROUND_MASK) == RAIL_GROUND_ICE_DESERT &&
- (_opt.landscape == LT_DESERT || type >= 4)) {
+ if (IsSnowRailGround(ti->tile) && (_opt.landscape == LT_DESERT || type >= 4)) {
if (image != SPR_FLAT_GRASS_TILE) {
image += rti->snow_offset; // tile with tracks
} else {