tunnelbridge_cmd.c
changeset 3215 56c250955b3b
parent 3214 172b409bf612
child 3216 ac69372a0833
equal deleted inserted replaced
3214:172b409bf612 3215:56c250955b3b
   807 		z += 8;
   807 		z += 8;
   808 
   808 
   809 		if (!CheckTileOwnership(tile)) return CMD_ERROR;
   809 		if (!CheckTileOwnership(tile)) return CMD_ERROR;
   810 
   810 
   811 		// railway bridge
   811 		// railway bridge
   812 		tile = GetOtherBridgeEnd(tile);
   812 		endtile = GetOtherBridgeEnd(tile);
   813 		// Make sure there's no vehicle on the bridge
   813 		// Make sure there's no vehicle on the bridge
   814 		v = FindVehicleBetween(tile, endtile, z);
   814 		v = FindVehicleBetween(tile, endtile, z);
   815 		if (v != NULL) {
   815 		if (v != NULL) {
   816 			VehicleInTheWayErrMsg(v);
   816 			VehicleInTheWayErrMsg(v);
   817 			return CMD_ERROR;
   817 			return CMD_ERROR;