changeset 3486:d2940b03b6ba draft

(svn r4337) -Fix: A problem where GetRailType was called instead of GetRailTileType. Thanks to glx for noticing
author celestar <celestar@openttd.org>
date Sun, 09 Apr 2006 17:50:00 +0000
parents 7bcf7ae9fe8a
children 80e953ba0417
files rail_cmd.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1799,7 +1799,7 @@
 	byte old_ground;
 	byte new_ground;
 
-	if (GetRailType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) {
+	if (GetRailTileType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) {
 		old_ground = GB(_m[tile].m4, 0, 4);
 	} else {
 		old_ground = GB(_m[tile].m2, 0, 4);
@@ -1822,7 +1822,7 @@
 	}
 
 	// Don't continue tile loop for depots
-	if (GetRailType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) return;
+	if (GetRailTileType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) return;
 
 	new_ground = RAIL_GROUND_GREEN;