summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_camera.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/soh/src/code/z_camera.c b/soh/src/code/z_camera.c
index ea3016769..2c8f7378c 100644
--- a/soh/src/code/z_camera.c
+++ b/soh/src/code/z_camera.c
@@ -1732,9 +1732,11 @@ s32 Camera_Normal1(Camera* camera) {
}
// crit wiggle
- if (gSaveContext.health <= 16 && ((camera->globalCtx->state.frames % 256) == 0)) {
- wiggleAdj = Rand_ZeroOne() * 10000.0f;
- camera->inputDir.y = wiggleAdj + camera->inputDir.y;
+ if(!CVar_GetS32("gDisableCritWiggle",0)) {
+ if (gSaveContext.health <= 16 && ((camera->globalCtx->state.frames % 256) == 0)) {
+ wiggleAdj = Rand_ZeroOne() * 10000.0f;
+ camera->inputDir.y = wiggleAdj + camera->inputDir.y;
+ }
}
} else {
anim->swing.swingUpdateRate = norm1->unk_0C;