1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Prevent ride ratings from invalidating ride windows unnecessarily

This commit is contained in:
mix
2025-05-17 21:21:47 +01:00
parent a47ee3f7de
commit 3c9136ac4f
5 changed files with 16 additions and 4 deletions

View File

@@ -2318,6 +2318,7 @@ static void test_finish(Ride& ride)
{
ride.lifecycleFlags &= ~RIDE_LIFECYCLE_TEST_IN_PROGRESS;
ride.lifecycleFlags |= RIDE_LIFECYCLE_TESTED;
ride.windowInvalidateFlags |= RIDE_INVALIDATE_RIDE_RATINGS;
auto rideStations = ride.getStations();
for (int32_t i = ride.numStations - 1; i >= 1; i--)