From b29fb14f6b066975480fee87fe68fdfddf05c157 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 13 Jun 2013 23:55:49 +0200 Subject: do not pause, ever (only in message boxes, music houses, and palace dudes) --- src/bonusRoom.cpp | 1 + src/msgbox.cpp | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src') 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 } -- cgit v1.2.3