tunnelbridge_cmd.c
changeset 4046 566de0b02064
parent 4022 9a31164f52c3
child 4062 e4a3faed6fe4
--- a/tunnelbridge_cmd.c	Mon Jun 19 09:40:08 2006 +0000
+++ b/tunnelbridge_cmd.c	Mon Jun 19 17:22:57 2006 +0000
@@ -343,8 +343,9 @@
 				break;
 
 			case MP_STREET:
-				if (GetRoadTileType(tile) != ROAD_TILE_NORMAL ||
-						GetRoadBits(tile) != (direction == AXIS_X ? ROAD_Y : ROAD_X)) {
+				if (GetRoadTileType(tile) != ROAD_TILE_NORMAL) goto not_valid_below;
+				if (HasRoadWorks(tile)) return_cmd_error(STR_ROAD_WORKS_IN_PROGRESS);
+				if (GetRoadBits(tile) != (direction == AXIS_X ? ROAD_Y : ROAD_X)) {
 					goto not_valid_below;
 				}
 				transport_under = TRANSPORT_ROAD;