mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Use debug mode check around debug no clip (#488)
This commit is contained in:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user