summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-06-13 23:55:49 +0200
committerTreeki <treeki@gmail.com>2013-06-13 23:55:49 +0200
commitb29fb14f6b066975480fee87fe68fdfddf05c157 (patch)
treed96ff326d69fd1199108c7c3186369beb078a628 /src
parent251754fd4b37b936e50ab40a7aa95ac0c1f4587e (diff)
downloadkamek-b29fb14f6b066975480fee87fe68fdfddf05c157.tar.gz
kamek-b29fb14f6b066975480fee87fe68fdfddf05c157.zip
do not pause, ever (only in message boxes, music houses, and palace dudes)
Diffstat (limited to '')
-rw-r--r--src/bonusRoom.cpp1
-rw-r--r--src/msgbox.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/bonusRoom.cpp b/src/bonusRoom.cpp
index ab06d31..7d391a2 100644
--- a/src/bonusRoom.cpp
+++ b/src/bonusRoom.cpp
@@ -516,6 +516,7 @@ dSingAlong *dSingAlong::build() {
// Events
int dSingAlong::onCreate() {
NoMichaelBuble = true;
+ StageC4::instance->_1D = 1; // enable no-pause
// Load in the settings
this->song = this->settings & 0xF;
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
}