summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-02-14 15:59:16 +0000
committerfrosch <frosch@openttd.org>2008-02-14 15:59:16 +0000
commit514df81e27398309532f7523ee1c7df86fe3043d (patch)
treea43464406df621d20a7dd83755ef86ae3474e9ea /src/rail_cmd.cpp
parent6c932166414ac0164fc53658b880d5b05a9d7a7e (diff)
downloadopenttd-514df81e27398309532f7523ee1c7df86fe3043d.tar.xz
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index b5f674df3..2830838f6 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -356,7 +356,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p
if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
- if (GetRoadTileType(tile) == ROAD_TILE_NORMAL) {
+ if (IsNormalRoad(tile)) {
if (HasRoadWorks(tile)) return_cmd_error(STR_ROAD_WORKS_IN_PROGRESS);
RoadTypes roadtypes = GetRoadTypes(tile);