# HG changeset patch # User tron # Date 2006-03-18 11:38:43 # Node ID eaf05a1a57151d04b62698b9305f80f98e227b4d # Parent e837257ca698881dab1fb86f3049a3f770ce5755 (svn r3942) GetRailType() != GetRailTileType(), fix r3941 diff --git a/rail_cmd.c b/rail_cmd.c --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1974,9 +1974,9 @@ static uint32 GetTileTrackStatus_Track(T 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;