tunnelbridge_cmd.c
changeset 3938 3d936f853ed2
parent 3933 231ae3c419f4
child 3977 513433ebd092
equal deleted inserted replaced
3937:5728e502f942 3938:3d936f853ed2
   342 			case MP_RAILWAY:
   342 			case MP_RAILWAY:
   343 				if (!IsPlainRailTile(tile)) goto not_valid_below;
   343 				if (!IsPlainRailTile(tile)) goto not_valid_below;
   344 				break;
   344 				break;
   345 
   345 
   346 			case MP_STREET:
   346 			case MP_STREET:
   347 				if (GetRoadTileType(tile) != ROAD_TILE_NORMAL) goto not_valid_below;
   347 				if (GetRoadTileType(tile) == ROAD_TILE_DEPOT) goto not_valid_below;
   348 				break;
   348 				break;
   349 
   349 
   350 			case MP_TUNNELBRIDGE:
   350 			case MP_TUNNELBRIDGE:
   351 				if (IsTunnel(tile)) break;
   351 				if (IsTunnel(tile)) break;
   352 				if (direction == DiagDirToAxis(GetBridgeRampDirection(tile))) goto not_valid_below;
   352 				if (direction == DiagDirToAxis(GetBridgeRampDirection(tile))) goto not_valid_below;