mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Allow pausing in most circumstances
This commit is contained in:
parent
3cd9b60f87
commit
19f878e858
1 changed files with 2 additions and 6 deletions
|
@ -253,12 +253,8 @@ u16 level_control_timer(s32 timerOp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 pressed_pause(void) {
|
u32 pressed_pause(void) {
|
||||||
u32 val4 = get_dialog_id() >= 0;
|
if (get_dialog_id() < 0) {
|
||||||
u32 intangible = (gMarioState->action & ACT_FLAG_INTANGIBLE) != 0;
|
return gPlayer1Controller->buttonPressed & START_BUTTON;
|
||||||
|
|
||||||
if (!intangible && !val4 && !gWarpTransition.isActive && sDelayedWarpOp == WARP_OP_NONE
|
|
||||||
&& (gPlayer1Controller->buttonPressed & START_BUTTON)) {
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue