Fix: Check for debug mode when watching cutscene debug inputs (#3133)

* fix check for debug mode when watching cutscene debug inputs

* update other cvar to debug enabled
This commit is contained in:
Adam Bird
2023-08-30 13:04:21 -04:00
committed by GitHub
parent 4aadf4c14c
commit f6c6bd0bec
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -7701,7 +7701,8 @@ Vec3s Camera_Update(Camera* camera) {
BINANG_TO_DEGF(camera->camDir.x), camera->camDir.y, BINANG_TO_DEGF(camera->camDir.y));
}
if (camera->timer != -1 && CHECK_BTN_ALL(D_8015BD7C->state.input[0].press.button, BTN_DRIGHT) && CVarGetInteger("gDebugCamera", 0)) {
if (camera->timer != -1 && CHECK_BTN_ALL(D_8015BD7C->state.input[0].press.button, BTN_DRIGHT) &&
CVarGetInteger("gDebugEnabled", 0)) {
camera->timer = 0;
}