summaryrefslogtreecommitdiff
path: root/src/road_gui.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/road_gui.cpp
parent6c932166414ac0164fc53658b880d5b05a9d7a7e (diff)
downloadopenttd-514df81e27398309532f7523ee1c7df86fe3043d.tar.xz
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r--src/road_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 31231e37f..b7313b449 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -177,7 +177,7 @@ static void BuildRoadOutsideStation(TileIndex tile, DiagDirection direction)
{
tile += TileOffsByDiagDir(direction);
// if there is a roadpiece just outside of the station entrance, build a connecting route
- if (IsTileType(tile, MP_ROAD) && GetRoadTileType(tile) == ROAD_TILE_NORMAL) {
+ if (IsNormalRoadTile(tile)) {
if (GetRoadBits(tile, _cur_roadtype) != ROAD_NONE) {
DoCommandP(tile, _cur_roadtype << 4 | DiagDirToRoadBits(ReverseDiagDir(direction)), 0, NULL, CMD_BUILD_ROAD);
}