Skip to content

Conversation

@dcvz
Copy link
Contributor

@dcvz dcvz commented Feb 18, 2023

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Super excited to see the accessibility stuff making it into PRs! Couple little comments (one question, one suggestion)

Comment on lines 1679 to +1685
if (anim->startSwingTimer <= 0) {
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not clear why it's only these 2 places where we want to early return (instead of also in the else), maybe adding a comment explaining would be helpful?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The third method is yaw shifting while normal movements - its what keeps the camera on link.
I'm only changing the shifting from the automatic swing.. when idle the camera swings to behind link.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a comment to the else to better explain when its in use

@dcvz dcvz force-pushed the a11y/disable-idle-cam branch from a09ebf7 to ddc89e4 Compare February 28, 2023 11:35
@briaguya0 briaguya0 merged commit b74be91 into HarbourMasters:develop Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants