From 0100871412ac1b48aa64a87f2d88d8276212963e Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 12 Mar 2006 15:04:03 +0000 Subject: (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 --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rail_cmd.c') 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); -- cgit v1.2.3-54-g00ecf