mirror of https://github.com/OpenRCT2/OpenRCT2.git
Clear entrance/exit location if no entrance or exit is found
This commit is contained in:
parent
e3b0409fbc
commit
17fdf1511f
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue