mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-20 14:23:08 +01:00
Make renewing a ride also reset its downtime
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- Improved: [#25529] The map selection grid no longer redraws every frame if it has not changed.
|
- 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: [#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: [#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.
|
- Change: [#25485] Make the enlarged pressed swatch sprite more pronounced.
|
||||||
- Fix: [#9895] Stand-up coaster gets wrong intensity boost from the synchronisation bonus.
|
- Fix: [#9895] Stand-up coaster gets wrong intensity boost from the synchronisation bonus.
|
||||||
- Fix: [#22484] Lingering ghost entrance after placing park entrance.
|
- Fix: [#22484] Lingering ghost entrance after placing park entrance.
|
||||||
|
|||||||
@@ -5386,6 +5386,8 @@ void Ride::renew()
|
|||||||
// Set build date to current date (so the ride is brand new)
|
// Set build date to current date (so the ride is brand new)
|
||||||
buildDate = GetDate().GetMonthsElapsed();
|
buildDate = GetDate().GetMonthsElapsed();
|
||||||
reliability = kRideInitialReliability;
|
reliability = kRideInitialReliability;
|
||||||
|
std::fill(std::begin(downtimeHistory), std::end(downtimeHistory), 0);
|
||||||
|
downtime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
RideClassification Ride::getClassification() const
|
RideClassification Ride::getClassification() const
|
||||||
|
|||||||
Reference in New Issue
Block a user