mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 11:54:39 +00:00
Add IS_PAUSED
macro
This commit is contained in:
parent
f752add633
commit
c8d0ca5499
9 changed files with 37 additions and 41 deletions
|
@ -839,7 +839,7 @@ void Play_Update(PlayState* this) {
|
|||
}
|
||||
|
||||
PLAY_LOG(3551);
|
||||
isPaused = (this->pauseCtx.state != PAUSE_STATE_OFF) || (this->pauseCtx.debugState != 0);
|
||||
isPaused = IS_PAUSED(&this->pauseCtx);
|
||||
|
||||
PLAY_LOG(3555);
|
||||
AnimationContext_Reset(&this->animationCtx);
|
||||
|
@ -916,7 +916,7 @@ void Play_Update(PlayState* this) {
|
|||
|
||||
if (this->viewpoint != VIEWPOINT_NONE) {
|
||||
if (CHECK_BTN_ALL(input[0].press.button, BTN_CUP)) {
|
||||
if ((this->pauseCtx.state != PAUSE_STATE_OFF) || (this->pauseCtx.debugState != 0)) {
|
||||
if (IS_PAUSED(&this->pauseCtx)) {
|
||||
// "Changing viewpoint is prohibited due to the kaleidoscope"
|
||||
osSyncPrintf(VT_FGCOL(CYAN) "カレイドスコープ中につき視点変更を禁止しております\n" VT_RST);
|
||||
} else if (Player_InCsMode(this)) {
|
||||
|
@ -940,7 +940,7 @@ void Play_Update(PlayState* this) {
|
|||
|
||||
PLAY_LOG(3716);
|
||||
|
||||
if ((this->pauseCtx.state != PAUSE_STATE_OFF) || (this->pauseCtx.debugState != 0)) {
|
||||
if (IS_PAUSED(&this->pauseCtx)) {
|
||||
PLAY_LOG(3721);
|
||||
KaleidoScopeCall_Update(this);
|
||||
} else if (this->gameOverCtx.state != GAMEOVER_INACTIVE) {
|
||||
|
@ -1003,7 +1003,7 @@ skip:
|
|||
}
|
||||
|
||||
void Play_DrawOverlayElements(PlayState* this) {
|
||||
if ((this->pauseCtx.state != PAUSE_STATE_OFF) || (this->pauseCtx.debugState != 0)) {
|
||||
if (IS_PAUSED(&this->pauseCtx)) {
|
||||
KaleidoScopeCall_Draw(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue