mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix day / night cycle for title sequence
This commit is contained in:
parent
08504257ad
commit
fe69ad6d53
|
@ -571,9 +571,7 @@ static void scenario_update_daynight_cycle()
|
||||||
**/
|
**/
|
||||||
void scenario_update()
|
void scenario_update()
|
||||||
{
|
{
|
||||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & ~SCREEN_FLAGS_PLAYING)
|
if (!(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & ~SCREEN_FLAGS_PLAYING)) {
|
||||||
return;
|
|
||||||
|
|
||||||
uint32 currentMonthTick = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_TICKS, uint16);
|
uint32 currentMonthTick = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_TICKS, uint16);
|
||||||
uint32 nextMonthTick = currentMonthTick + 4;
|
uint32 nextMonthTick = currentMonthTick + 4;
|
||||||
uint8 currentMonth = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, sint16) & 7;
|
uint8 currentMonth = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, sint16) & 7;
|
||||||
|
@ -595,6 +593,7 @@ void scenario_update()
|
||||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, sint16)++;
|
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, sint16)++;
|
||||||
scenario_month_update();
|
scenario_month_update();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scenario_update_daynight_cycle();
|
scenario_update_daynight_cycle();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue