Skip to content
Snippets Groups Projects

Fix Lavafalls crashing the game when scaled down.

Merged Neon requested to merge talktoneon726/SRB2:lavafall-crash-avoidance into next

A modulus operation is used to decide the different rate that larger lavafalls spew lava at. This can cause a divide by zero. The math before did not account for this scenario though, and made it worse by shifting it down, making any value under a FRACUNIT become 0, now it caps off at 1.

Smaller lavafalls act the same as their regular size, might be worth changing that later. (also it'd be really sick if a udmf map scaled one of these up to have it turn on and off constantly)

Merge request reports

Loading
Loading

Activity

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