mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
If the ride price becomes unaffordable for a guest who is already waiting to enter a vehicle, that guest became stuck due to an animation loop.
This commit is contained in:
@@ -2617,7 +2617,13 @@ static bool peep_check_ride_price_at_entrance(Guest* peep, Ride* ride, money32 r
|
||||
|
||||
if (ridePrice > peep->CashInPocket)
|
||||
{
|
||||
peep->InsertNewThought(PeepThoughtType::CantAffordRide, peep->CurrentRide);
|
||||
// Prevent looping of same thought / animation since Destination Tolerance
|
||||
// is only 0 exactly at entrance and will immediately change as guest
|
||||
// tries to leave hereafter
|
||||
if (peep->DestinationTolerance == 0)
|
||||
{
|
||||
peep->InsertNewThought(PeepThoughtType::CantAffordRide, peep->CurrentRide);
|
||||
}
|
||||
peep_update_ride_at_entrance_try_leave(peep);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user