(svn r4381) -Codechange: Forgot an occurence for rail ground types
authorcelestar
Wed, 12 Apr 2006 12:22:43 +0000
changeset 3525 55138f9b6ab9
parent 3524 be2b44204623
child 3526 3a0dddcfd33b
(svn r4381) -Codechange: Forgot an occurence for rail ground types
rail_cmd.c
--- a/rail_cmd.c	Wed Apr 12 12:12:51 2006 +0000
+++ b/rail_cmd.c	Wed Apr 12 12:22:43 2006 +0000
@@ -1356,8 +1356,7 @@
 		// 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 {