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