forked from rosebudai/OpenRCT2-Web
Return date and park by reference from game state
This commit is contained in:
1 parent
1e7560e7da
commit
9d617958cf
8 files changed
+25
-20
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user