Return date and park by reference from game state

This commit is contained in:
Ted John committed 2018-05-30 13:12:19 +01:00
1 parent 1e7560e7da
commit 9d617958cf
8 files changed
+25 -20

No files matched your search

+3 -3
View File
@@ -39,15 +39,15 @@ TEST(MultiLaunchTest, all)
ASSERT_EQ(gRideCount, 134);
auto gs = context->GetGameState();
ASSERT_NE(gs, nullptr);
auto date = gs->GetDate();
ASSERT_EQ(date->GetMonthTicks(), 0);
auto& date = gs->GetDate();
ASSERT_EQ(date.GetMonthTicks(), 0);
for (int j = 0; j < updatesToTest; j++)
{
gs->UpdateLogic();
}
ASSERT_EQ(date->GetMonthTicks(), 7862 + updatesToTest);
ASSERT_EQ(date.GetMonthTicks(), 7862 + updatesToTest);
// Check ride count again
ASSERT_EQ(gRideCount, 134);