1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-19 22:02:57 +01:00

Make renewing a ride also reset its downtime

This commit is contained in:
MarcelVos96
2025-12-10 16:39:29 +01:00
committed by GitHub
parent 909af98092
commit b59114ddb0
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
- Improved: [#25529] The map selection grid no longer redraws every frame if it has not changed.
- Improved: [#25530] Wall dragging can now be cancelled without closing the Scenery window.
- Improved: [#25575] Updated the network protocol to a new format that supports larger packets, allowing clients to connect reliably to servers with many objects or large maps.
- Improved: [#25625] Renewing and refurbishing rides now also resets the downtime.
- Change: [#25485] Make the enlarged pressed swatch sprite more pronounced.
- Fix: [#9895] Stand-up coaster gets wrong intensity boost from the synchronisation bonus.
- Fix: [#22484] Lingering ghost entrance after placing park entrance.

View File

@@ -5386,6 +5386,8 @@ void Ride::renew()
// Set build date to current date (so the ride is brand new)
buildDate = GetDate().GetMonthsElapsed();
reliability = kRideInitialReliability;
std::fill(std::begin(downtimeHistory), std::end(downtimeHistory), 0);
downtime = 0;
}
RideClassification Ride::getClassification() const