diff options
| author | Ada <60364512+GreatArgorath@users.noreply.github.com> | 2022-10-21 05:39:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-21 00:39:42 -0400 |
| commit | c914bd20b8d769ce7acc4f4ca560aa55d65d92f4 (patch) | |
| tree | baba9b93b230f8ebbd8df92f9adfa36a91f59b91 /soh/src/code | |
| parent | 76942aeaee7bf0652a2ed4c286c1ab262a0bba24 (diff) | |
Adds camera sensitivity option back (#1817)
* Adds camera sensitivity option
* Fixes default values
* Fixes default values (for real this time)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_camera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/z_camera.c b/soh/src/code/z_camera.c index 2c8f7378c..c1003c6dd 100644 --- a/soh/src/code/z_camera.c +++ b/soh/src/code/z_camera.c @@ -1485,8 +1485,8 @@ s32 Camera_Free(Camera* camera) { camera->animState = 1; - f32 newCamX = -D_8015BD7C->state.input[0].cur.right_stick_x * 10.0f; - f32 newCamY = D_8015BD7C->state.input[0].cur.right_stick_y * 10.0f; + f32 newCamX = -D_8015BD7C->state.input[0].cur.right_stick_x * 10.0f * (CVar_GetFloat("gCameraSensitivity", 1.0f)); + f32 newCamY = D_8015BD7C->state.input[0].cur.right_stick_y * 10.0f * (CVar_GetFloat("gCameraSensitivity", 1.0f)); camera->globalCtx->camX += newCamX * (CVar_GetS32("gInvertXAxis", 0) ? -1 : 1); camera->globalCtx->camY += newCamY * (CVar_GetS32("gInvertYAxis", 1) ? 1 : -1); |
