summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-09 17:50:00 +0000
committercelestar <celestar@openttd.org>2006-04-09 17:50:00 +0000
commitf5a9e68f40aaff3c0dec6ef21f569ad4e90db77c (patch)
tree4b46ac3e09e3d4b08eb197d9b7783db4f1ab83e6
parentf4e0e91ee28f31605e068e6d79952603cf5c8cc7 (diff)
downloadopenttd-f5a9e68f40aaff3c0dec6ef21f569ad4e90db77c.tar.xz
(svn r4337) -Fix: A problem where GetRailType was called instead of GetRailTileType. Thanks to glx for noticing
-rw-r--r--rail_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 35c7b43d4..1012cca7a 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1799,7 +1799,7 @@ static void TileLoop_Track(TileIndex tile)
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 @@ static void TileLoop_Track(TileIndex tile)
}
// 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;