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

Reset fov on crossbow holster #394

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Conversation

FreeSlave
Copy link
Member

In this sdk we restore player's fov after the save-restore

pev->fov = m_iFOV; // Vit_amiN: restore the FOV on level change or map/saved game load

This leads to another bug when switching to weapon after save-restore doesn't reset zoom effect.
To reproduce:

  1. Zoom in crossbow
  2. Save
  3. Load
  4. Switch to other weapon

To fix this I use the same condition in Holster as the one that is already used in Reload, i.e. checking the fov instead of m_fInZoom (which is not get saved).

However, I can imagine other situations when fov doesn't reset. E.g. if player was stripped of weapons while in zoom. These need to be tested.

@nekonomicon nekonomicon merged commit 17b34aa into FWGS:master Sep 30, 2023
3 checks passed
@FreeSlave FreeSlave deleted the zoom_fix branch December 11, 2023 01:53
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