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

Change gDateMonthsElapsed type to int32_t

This commit is contained in:
Tulio Leao
2020-08-25 19:06:38 -03:00
parent 10aca0fe6e
commit efdb7e1a2d
13 changed files with 18 additions and 18 deletions

View File

@@ -280,7 +280,7 @@ size_t Ride::GetNumPrices() const
int32_t Ride::GetAge() const
{
return static_cast<int32_t>(gDateMonthsElapsed) - build_date;
return gDateMonthsElapsed - build_date;
}
int32_t Ride::GetTotalQueueLength() const
@@ -932,7 +932,7 @@ void reset_all_ride_build_dates()
{
for (auto& ride : GetRideManager())
{
ride.build_date -= static_cast<int32_t>(gDateMonthsElapsed);
ride.build_date -= gDateMonthsElapsed;
}
}
@@ -7114,7 +7114,7 @@ void Ride::Delete()
void Ride::Renew()
{
// Set build date to current date (so the ride is brand new)
build_date = static_cast<int32_t>(gDateMonthsElapsed);
build_date = gDateMonthsElapsed;
reliability = RIDE_INITIAL_RELIABILITY;
}