1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Remove GameState class

This commit is contained in:
Gymnasiast
2024-03-26 15:08:17 +01:00
parent 28451027b1
commit fef1a27342
18 changed files with 306 additions and 359 deletions

View File

@@ -45,8 +45,6 @@ TEST(MultiLaunchTest, all)
// Check ride count to check load was successful
ASSERT_EQ(RideGetCount(), 134);
auto gs = context->GetGameState();
ASSERT_NE(gs, nullptr);
auto& date = GetGameState().Date;
// NOTE: This value is saved in the SV6 file, after the import this will be the current state.
@@ -55,7 +53,7 @@ TEST(MultiLaunchTest, all)
for (int j = 0; j < updatesToTest; j++)
{
gs->UpdateLogic();
gameStateUpdateLogic();
}
ASSERT_EQ(date.GetMonthTicks(), 7862 + updatesToTest);