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:
@@ -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);
|
||||
|
||||
@@ -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--) {
|
||||
|
||||
Reference in New Issue
Block a user