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

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

Copy link

@1upD 1upD left a comment

Choose a reason for hiding this comment

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

LGTM

@Blixibon Blixibon merged commit 3265f84 into mapbase-source:develop Feb 27, 2025
4 checks passed
@Blixibon Blixibon deleted the mapbase/feature/hud-uses-sprintdevice branch February 27, 2025 14:51
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