Skip to content

Fix suit power HUD checking for actual sprint instead of sprint device#368

Merged
Blixibon merged 1 commit intomapbase-source:developfrom
Blixibon:mapbase/feature/hud-uses-sprintdevice
Feb 27, 2025
Merged

Fix suit power HUD checking for actual sprint instead of sprint device#368
Blixibon merged 1 commit intomapbase-source:developfrom
Blixibon:mapbase/feature/hud-uses-sprintdevice

Conversation

@Blixibon
Copy link
Copy Markdown
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
Copy Markdown

@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
@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