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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user