Details for commit c68e11286

11-Jun-2022 (Saturday) at 03:12:56 EDT by Mitchell Richters
Commit c68e11286
Parents: ea17352ae

On branches: animateofs, cansee_for_testing, intwork2, master, new_floatify, sectorneighbor, set_int_pos
  • Remove some unnecessary branching and abs() calls in processMovement().

  • Since fvel/svel is clamped at the end of the function, these tests just aren't necessary.

  • Reversed the logic in some if statements so the most likely outcome doesn't fall to the else branch.

1 files changed, 33 insertions, 39 deletions


source/core/gameinput.cpp (Diff)