mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 03:05:24 +01:00
Refactor and clean up date handling (#19666)
* Refactor and clean up date handling * Remove gDate, remove direct access to days_in_month * Adjust the MultiLaunch test * Bump network version --------- Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9e4099fcdf
commit
fd80b4c822
@@ -48,8 +48,11 @@ TEST(MultiLaunchTest, all)
|
||||
ASSERT_EQ(RideGetCount(), 134);
|
||||
auto gs = context->GetGameState();
|
||||
ASSERT_NE(gs, nullptr);
|
||||
|
||||
auto& date = gs->GetDate();
|
||||
ASSERT_EQ(date.GetMonthTicks(), 0);
|
||||
// NOTE: This value is saved in the SV6 file, after the import this will be the current state.
|
||||
// In case the save file gets replaced this needs to be adjusted.
|
||||
ASSERT_EQ(date.GetMonthTicks(), 0x1e98);
|
||||
|
||||
for (int j = 0; j < updatesToTest; j++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user