1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

integrate game paused variable and refactor

This commit is contained in:
Ted John
2016-04-23 13:34:55 +01:00
parent 28aa9fe707
commit ee509caf35
25 changed files with 79 additions and 69 deletions

View File

@@ -137,7 +137,7 @@ int viewport_interaction_left_click(int x, int y)
window_guest_open(info.peep);
break;
case SPRITE_IDENTIFIER_MISC:
if (RCT2_GLOBAL(RCT2_ADDRESS_GAME_PAUSED, uint8) == 0) {
if (game_is_not_paused()) {
switch (info.sprite->unknown.misc_identifier) {
case SPRITE_MISC_BALLOON:
balloon_press(&info.sprite->balloon);

View File

@@ -2228,7 +2228,7 @@ void sub_6EA73F()
{
rct_window *w;
if (RCT2_GLOBAL(RCT2_ADDRESS_GAME_PAUSED, uint8) != 0)
if (game_is_paused())
RCT2_GLOBAL(0x01423604, uint32)++;
for (w = RCT2_LAST_WINDOW; w >= g_window_list; w--) {