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 suit power HUD checking for actual sprint instead of sprint device #368

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Blixibon
Copy link
Member

This PR fixes the HL2 aux power HUD directly checking for if the player is sprinting with IsSprinting(), rather than whether or not the sprinting device is active with IsSprintActive() like with the other suit devices. This is an issue in cases where the sprint device isn't active, but the player is still sprinting (e.g. some alternate infinite sprint methods in mods).

Otherwise, this PR does not change anything functionally. IsSprinting() and IsSprintActive() will normally return the same value in practice.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

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.

1 participant