Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix camera shudder #6394

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

Goober5000
Copy link
Contributor

The enhanced controls and flags in #4552 were intended to allow the camera to shudder in all views, not just the cockpit view. And indeed, the shudder does apply in all other views... except for cutscene cameras, due to the VM_FREECAMERA check in game_render_frame(). So, add a separate check for cutscene cameras when shuddering everywhere. The cutscene camera can be jittered just like the cockpit camera, but the rotation should not be modified or it will produce feedback.

Follow-up to #4552. Also removes an unused variable that was made obsolete in #5656.

The enhanced controls and flags in scp-fs2open#4552 were intended to allow the camera to shudder in all views, not just the cockpit view.  And indeed, the shudder does apply in all other views... except for cutscene cameras, due to the `VM_FREECAMERA` check in `game_render_frame()`.  So, add a separate check for cutscene cameras when shuddering everywhere.  The cutscene camera can be jittered just like the cockpit camera, but the rotation should not be modified or it will produce feedback.

Follow-up to scp-fs2open#4552.  Also removes an unused variable that was made obsolete in scp-fs2open#5656.
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. gameplay A feature or issue that can significantly impact gameplay Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Oct 14, 2024
@Goober5000 Goober5000 merged commit 79a9acb into scp-fs2open:master Oct 28, 2024
16 checks passed
@Goober5000 Goober5000 deleted the fix_camera_shudder branch October 28, 2024 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for bugs, not-a-bugs, and/or regressions. gameplay A feature or issue that can significantly impact gameplay Requested by Active Mod A feature request that has been requested by a mod that is actively in development.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants