diff options
author | tron <tron@openttd.org> | 2006-03-12 15:04:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 15:04:03 +0000 |
commit | 0100871412ac1b48aa64a87f2d88d8276212963e (patch) | |
tree | fa4485d2814de5612a416a86e22ba7d60ce70f9f /rail_cmd.c | |
parent | 7a0071cc531b7c3fe03293360acec28e889a4532 (diff) | |
download | openttd-0100871412ac1b48aa64a87f2d88d8276212963e.tar.xz |
(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 72c4de698..8dc36a59d 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1625,7 +1625,7 @@ static bool SignalVehicleCheck(TileIndex tile, uint track) * is some kind of invisible black hole, and there is some special magic going * on in there. This 'workaround' can be removed once the maprewrite is done. */ - if (IsTileType(tile, MP_TUNNELBRIDGE) && GB(_m[tile].m5, 4, 4) == 0) { + if (IsTunnelTile(tile)) { // It is a tunnel we're checking, we need to do some special stuff // because VehicleFromPos will not find the vihicle otherwise TileIndex end = GetOtherTunnelEnd(tile); |