1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Clear entrance/exit location if no entrance or exit is found

This commit is contained in:
Michael Steenbeek
2017-10-25 15:47:36 +02:00
parent e3b0409fbc
commit 17fdf1511f

View File

@@ -8335,6 +8335,18 @@ void fix_ride_entrance_and_exit_locations()
}
}
}
if (fixEntrance && !alreadyFoundEntrance)
{
ride->entrances[stationIndex].xy = RCT_XY8_UNDEFINED;
log_info("Cleared disconnected entrance of ride %d, station %d.", rideIndex, stationIndex);
}
if (fixExit && !alreadyFoundExit)
{
ride->exits[stationIndex].xy = RCT_XY8_UNDEFINED;
log_info("Cleared disconnected exit of ride %d, station %d.", rideIndex, stationIndex);
}
}
}
}