Skip to content
Snippets Groups Projects

Draft: Fix infinite loop when Force Shield has 256 HP

Closed Sparkette requested to merge flarn2006/SRB2:forcehp_hud_fix into next
1 unresolved thread

I set powers[pw_shield] to SH_FORCE|SH_FORCEHP just to see what that would look like in the HUD, and the game just froze. A quick look with GDB told me it was in an infinite loop, as it was checking i <= 255 when i is a UINT8. So I just changed it to a UINT16, which I verified fixes the bug.

Merge request reports

Closed by spheresphere 1 year ago (Mar 7, 2024 12:22pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading