1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Move gNumGuestsInPark to GameState_t (#21295)

* Move gNumGuestsInPark to GameState_t

* Replace GetGameState() with gameState
This commit is contained in:
Harry Hopkinson
2024-01-28 22:17:43 +00:00
committed by GitHub
parent 396af1f34c
commit 11ae8247bd
14 changed files with 58 additions and 48 deletions

View File

@@ -305,8 +305,11 @@ private:
const auto& date = GetDate();
json_t mapSize = { { "x", gMapSize.x - 2 }, { "y", gMapSize.y - 2 } };
json_t gameInfo = {
{ "mapSize", mapSize }, { "day", date.GetMonthTicks() }, { "month", date.GetMonthsElapsed() },
{ "guests", gNumGuestsInPark }, { "parkValue", gameState.ParkValue },
{ "mapSize", mapSize },
{ "day", date.GetMonthTicks() },
{ "month", date.GetMonthsElapsed() },
{ "guests", gameState.NumGuestsInPark },
{ "parkValue", gameState.ParkValue },
};
if (!(gameState.ParkFlags & PARK_FLAGS_NO_MONEY))