1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Change GameState_t members to lowerCamelCase

This commit is contained in:
Gymnasiast
2025-03-20 19:47:53 +01:00
parent eb30d3c054
commit 4badffcdb6
179 changed files with 2619 additions and 2619 deletions

View File

@@ -108,15 +108,15 @@ int32_t Date::GetDaysInMonth(int32_t month)
void OpenRCT2::DateUpdate(GameState_t& gameState)
{
int32_t monthTicks = gameState.Date.monthTicks + kMonthTicksIncrement;
int32_t monthTicks = gameState.date.monthTicks + kMonthTicksIncrement;
if (monthTicks > kMaskMonthTicks)
{
gameState.Date.monthTicks = 0;
gameState.Date.monthsElapsed++;
gameState.date.monthTicks = 0;
gameState.date.monthsElapsed++;
}
else
{
gameState.Date.monthTicks = static_cast<uint16_t>(monthTicks);
gameState.date.monthTicks = static_cast<uint16_t>(monthTicks);
}
}
@@ -147,7 +147,7 @@ void DateUpdateRealTimeOfDay()
Date& GetDate()
{
return GetGameState().Date;
return getGameState().date;
}
/**
@@ -156,7 +156,7 @@ Date& GetDate()
*/
void ResetDate()
{
auto& gameState = GetGameState();
gameState.Date = {};
auto& gameState = getGameState();
gameState.date = {};
gCurrentRealTimeTicks = 0;
}