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 | 78083f0da7b7c94eccea15eec397e2afe96da1d5 (patch) | |
tree | fa4485d2814de5612a416a86e22ba7d60ce70f9f /town_cmd.c | |
parent | b394f72fa9305094ddf672564a0f4a0c8f16e89b (diff) | |
download | openttd-78083f0da7b7c94eccea15eec397e2afe96da1d5.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 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/town_cmd.c b/town_cmd.c index 9813f5312..ce4498f5f 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -624,9 +624,7 @@ static void GrowTownInTile(TileIndex* tile_ptr, RoadBits mask, int block, Town* int i; // Reached a tunnel? Then continue at the other side of it. - if (IsTileType(tile, MP_TUNNELBRIDGE) && - GB(_m[tile].m5, 4, 4) == 0 && - GetTunnelTransportType(tile) == TRANSPORT_ROAD) { + if (IsTunnelTile(tile) && GetTunnelTransportType(tile) == TRANSPORT_ROAD) { *tile_ptr = GetOtherTunnelEnd(tile); return; } |