Fix #17865: Unopened rides contribute to difficult guest cap

This commit is contained in:
Gymnasiast 2022-09-03 16:22:54 +02:00
parent 8c8dc632b8
commit 83c6ce6b39
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@
- Fix: [#17897] Guest can get stuck on tiles with construction rights outside the park.
- Fix: [#17905] The chain button in the map window is enabled for rectangular maps when (re)opened.
- Fix: [#17931] The in-game command count_objects crashes the game.
- Fix: [#17865] With difficult guest generation, tested but unopened rides still contribute to the guest cap.
- Fix: [#17866] [Plugin] Wrong Soft Guest Cap at start of new game
0.4.1 (2022-07-04)

View File

@ -570,6 +570,8 @@ uint32_t Park::CalculateSuggestedMaxGuests() const
suggestedMaxGuests = std::min<uint32_t>(suggestedMaxGuests, 1000);
for (auto& ride : GetRideManager())
{
if (ride.status != RideStatus::Open)
continue;
if (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED)
continue;
if (ride.lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)