(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
This commit is contained in:
@@ -387,7 +387,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p
|
||||
break;
|
||||
|
||||
case MP_ROAD:
|
||||
if (GetRoadTileType(tile) == ROAD_TILE_DEPOT) goto not_valid_below;
|
||||
if (IsRoadDepot(tile)) goto not_valid_below;
|
||||
break;
|
||||
|
||||
case MP_TUNNELBRIDGE:
|
||||
|
Reference in New Issue
Block a user