summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-18 11:38:43 +0000
committertron <tron@openttd.org>2006-03-18 11:38:43 +0000
commitfc08e888c3c85fd6f2531ff32083cfe04bd8b1c9 (patch)
tree249422518ba5a5b077a7020266ce58cedd27d07d /rail_cmd.c
parentdabfa14778bdea8627dc7805922ae5e7cd8059a8 (diff)
downloadopenttd-fc08e888c3c85fd6f2531ff32083cfe04bd8b1c9.tar.xz
(svn r3942) GetRailType() != GetRailTileType(), fix r3941
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 24b196d22..5b5c529e2 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1974,9 +1974,9 @@ static uint32 GetTileTrackStatus_Track(TileIndex tile, TransportType mode)
m5 = _m[tile].m5;
- if (GetRailType(tile) != RAIL_TYPE_DEPOT_WAYPOINT) {
+ if (GetRailTileType(tile) != RAIL_TYPE_DEPOT_WAYPOINT) {
ret = (m5 | (m5 << 8)) & 0x3F3F;
- if (GetRailType(tile) != RAIL_TYPE_SIGNALS) {
+ if (GetRailTileType(tile) != RAIL_TYPE_SIGNALS) {
if ( (ret & 0xFF) == 3)
/* Diagonal crossing? */
ret |= 0x40;