don't allow activation if paused or in event

This commit is contained in:
Pheenoh
2026-05-04 20:15:02 -06:00
parent b2ad75027e
commit 3c5ade5565
2 changed files with 23 additions and 6 deletions
+7 -2
View File
@@ -7498,8 +7498,10 @@ bool dCamera_c::executeDebugFlyCam() {
return false;
}
event->mEventStatus = 1;
dComIfGp_getEventManager().setCameraPlay(1);
if (!mDebugFlyCam.initialized && (event->mEventStatus != 0 || dComIfGp_isPauseFlag())) {
dusk::getSettings().game.debugFlyCam.setValue(false);
return false;
}
if (!mDebugFlyCam.initialized) {
mDebugFlyCam.savedCenter = mCenter;
@@ -7517,6 +7519,9 @@ bool dCamera_c::executeDebugFlyCam() {
mDebugFlyCam.initialized = true;
}
event->mEventStatus = 1;
dComIfGp_getEventManager().setCameraPlay(1);
interface_of_controller_pad& pad = mDoCPd_c::getCpadInfo(0);
f32 stickY = pad.mMainStickPosY * 72.0f;
f32 stickX = pad.mMainStickPosX * 72.0f;