1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +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

@@ -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