summaryrefslogtreecommitdiff
path: root/StormLib/src/SFileAttributes.cpp
diff options
context:
space:
mode:
authorDavid Racine <bass_dr@hotmail.com>2026-06-19 09:58:12 -0400
committerGitHub <noreply@github.com>2026-06-19 13:58:12 +0000
commit497d34570b16e195665dcdf626cf187f0a705708 (patch)
treef38123cda40ddf36581327e2ee44c0bc28d864ab /StormLib/src/SFileAttributes.cpp
parentd912fd2c016bea51831da922f5f4fd31c14ccab3 (diff)
fix: free look releases the door peek camera (#6756)
* fix(camera): let free look release the door peek camera After walking through a door, the door camera (CAM_SET_DOORC) held the view and only handed control back once the player moved or pressed a button, so the right stick did nothing until then. With free look the camera appeared frozen after every door. Treat right-stick movement as a release condition too, using the same stick threshold as free-look activation. * refactor(camera): move door-cam free-look release to a VB_SHOULD hook Reimplements the door peek camera free-look release as a vanilla-behavior hook instead of inline logic in z_camera.c, keeping the decomp file close to upstream. - Add VB_RELEASE_DOORC_CAMERA wrapping the existing Camera_Special9 release condition; the vanilla button/xzSpeed expression is left untouched. - Move the right-stick / free-look threshold logic into a new enhancement, FreeLookDoorCamRelease.cpp, registered with COND_VB_SHOULD and gated on FreeLook.Enabled so the hook only exists while Free Look is on. Behavior is unchanged from the previous fix; this only relocates the logic. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'StormLib/src/SFileAttributes.cpp')
0 files changed, 0 insertions, 0 deletions