mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 19:56:13 +01:00
Change GameState_t members to lowerCamelCase
This commit is contained in:
@@ -303,20 +303,20 @@ private:
|
||||
{ "players", numPlayers },
|
||||
};
|
||||
|
||||
const auto& gameState = GetGameState();
|
||||
const auto& gameState = getGameState();
|
||||
const auto& date = GetDate();
|
||||
json_t mapSize = { { "x", gameState.MapSize.x - 2 }, { "y", gameState.MapSize.y - 2 } };
|
||||
json_t mapSize = { { "x", gameState.mapSize.x - 2 }, { "y", gameState.mapSize.y - 2 } };
|
||||
json_t gameInfo = {
|
||||
{ "mapSize", mapSize },
|
||||
{ "day", date.GetMonthTicks() },
|
||||
{ "month", date.GetMonthsElapsed() },
|
||||
{ "guests", gameState.NumGuestsInPark },
|
||||
{ "parkValue", gameState.Park.Value },
|
||||
{ "guests", gameState.numGuestsInPark },
|
||||
{ "parkValue", gameState.park.Value },
|
||||
};
|
||||
|
||||
if (!(gameState.Park.Flags & PARK_FLAGS_NO_MONEY))
|
||||
if (!(gameState.park.Flags & PARK_FLAGS_NO_MONEY))
|
||||
{
|
||||
gameInfo["cash"] = gameState.Cash;
|
||||
gameInfo["cash"] = gameState.cash;
|
||||
}
|
||||
|
||||
root["gameInfo"] = gameInfo;
|
||||
|
||||
Reference in New Issue
Block a user