diff options
author | Treeki <treeki@gmail.com> | 2013-06-13 23:55:49 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-06-13 23:55:49 +0200 |
commit | b29fb14f6b066975480fee87fe68fdfddf05c157 (patch) | |
tree | d96ff326d69fd1199108c7c3186369beb078a628 /src/msgbox.cpp | |
parent | 251754fd4b37b936e50ab40a7aa95ac0c1f4587e (diff) | |
download | kamek-b29fb14f6b066975480fee87fe68fdfddf05c157.tar.gz kamek-b29fb14f6b066975480fee87fe68fdfddf05c157.zip |
do not pause, ever (only in message boxes, music houses, and palace dudes)
Diffstat (limited to 'src/msgbox.cpp')
-rw-r--r-- | src/msgbox.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/msgbox.cpp b/src/msgbox.cpp index 47ec554..829fcb3 100644 --- a/src/msgbox.cpp +++ b/src/msgbox.cpp @@ -76,6 +76,8 @@ int dMsgBoxManager_c::onDelete() { instance = 0; MessageBoxIsShowing = false; + if (canCancel && StageC4::instance) + StageC4::instance->_1D = 0; // disable no-pause msgDataLoader.unload(); return layout.free(); @@ -142,6 +144,7 @@ CREATE_STATE(dMsgBoxManager_c, BoxAppearWait); void dMsgBoxManager_c::beginState_BoxAppearWait() { visible = true; MessageBoxIsShowing = true; + StageC4::instance->_1D = 1; // enable no-pause layout.enableNonLoopAnim(ANIM_BOX_APPEAR); nw4r::snd::SoundHandle handle; @@ -201,6 +204,8 @@ void dMsgBoxManager_c::executeState_BoxDisappearWait() { void dMsgBoxManager_c::endState_BoxDisappearWait() { visible = false; MessageBoxIsShowing = false; + if (canCancel && StageC4::instance) + StageC4::instance->_1D = 0; // disable no-pause } |