mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-11 23:56:22 -07:00
fix: disable Idle camera re-center no longer stuck on level geometry (#3094)
This commit is contained in:
parent
f68a4e930d
commit
f5ab1a9b5d
1 changed files with 13 additions and 12 deletions
|
@ -1678,12 +1678,13 @@ s32 Camera_Normal1(Camera* camera) {
|
|||
Camera_ClampDist(camera, eyeAdjustment.r, norm1->distMin, norm1->distMax, anim->unk_28);
|
||||
|
||||
if (anim->startSwingTimer <= 0) {
|
||||
// idle camera re-center
|
||||
if (CVarGetInteger("gA11yDisableIdleCam", 0)) return;
|
||||
eyeAdjustment.pitch = atEyeNextGeo.pitch;
|
||||
eyeAdjustment.yaw =
|
||||
Camera_LERPCeilS(anim->swingYawTarget, atEyeNextGeo.yaw, 1.0f / camera->yawUpdateRateInv, 0xA);
|
||||
} else if (anim->swing.unk_18 != 0) {
|
||||
if (CVarGetInteger("gA11yDisableIdleCam", 0)) return;
|
||||
// camera adjustments when obstructed/pushed by scene geometry
|
||||
eyeAdjustment.yaw =
|
||||
Camera_LERPCeilS(anim->swing.unk_16, atEyeNextGeo.yaw, 1.0f / camera->yawUpdateRateInv, 0xA);
|
||||
eyeAdjustment.pitch =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue