src/road_gui.cpp
changeset 8563 13b1a41e46f1
parent 8557 d5fb341fc220
child 8573 a0a5f36a982e
--- a/src/road_gui.cpp	Thu Feb 14 15:13:36 2008 +0000
+++ b/src/road_gui.cpp	Thu Feb 14 15:59:16 2008 +0000
@@ -177,7 +177,7 @@
 {
 	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);
 		}