tunnelbridge_cmd.c
branchcustombridgeheads
changeset 5590 dc34c43fc3eb
parent 5573 afa6f92a71fd
child 5591 8cd83b10634f
equal deleted inserted replaced
5589:0375bd469024 5590:dc34c43fc3eb
   339 
   339 
   340 			case MP_STREET:
   340 			case MP_STREET:
   341 				if (GetRoadTileType(tile) == ROAD_TILE_DEPOT) goto not_valid_below;
   341 				if (GetRoadTileType(tile) == ROAD_TILE_DEPOT) goto not_valid_below;
   342 				break;
   342 				break;
   343 
   343 
   344 			case MP_TUNNELBRIDGE:
   344 			case MP_TUNNEL:
   345 				if (IsTunnel(tile)) break;
   345 				break;
       
   346 
       
   347 			case MP_STREET_BRIDGE:
       
   348 			case MP_RAILWAY_BRIDGE:
   346 				if (direction == DiagDirToAxis(GetBridgeRampDirection(tile))) goto not_valid_below;
   349 				if (direction == DiagDirToAxis(GetBridgeRampDirection(tile))) goto not_valid_below;
   347 				if (z_start < GetBridgeHeight(tile)) goto not_valid_below;
   350 				if (z_start < GetBridgeHeight(tile)) goto not_valid_below;
   348 				break;
   351 				break;
   349 
   352 
   350 			case MP_UNMOVABLE:
   353 			case MP_UNMOVABLE: