mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 09:22:18 -05:00
fix: disable Idle camera re-center no longer stuck on level geometry (#3094)
This commit is contained in:
parent
f68a4e930d
commit
f5ab1a9b5d
@ -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…
Reference in New Issue
Block a user