Use debug mode check around debug no clip (#488)

This commit is contained in:
Archez
2024-05-26 21:13:54 +01:00
committed by GitHub
parent 78406d02db
commit 36815d0d49
@@ -12508,6 +12508,11 @@ static bool sNoclipEnabled;
s32 Player_UpdateNoclip(Player* this, PlayState* play) {
sPlayerControlInput = &play->state.input[0];
if (!CVarGetInteger("gDeveloperTools.DebugEnabled", 0)) {
sNoclipEnabled = false;
return true;
}
if ((CHECK_BTN_ALL(sPlayerControlInput->cur.button, BTN_L | BTN_R | BTN_A) &&
CHECK_BTN_ALL(sPlayerControlInput->press.button, BTN_B)) ||
(CHECK_BTN_ALL(sPlayerControlInput->cur.button, BTN_L) &&