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
1 changed files with 12 additions and 0 deletions

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);
}
}
}
}