Skip to content
  • Zwip-Zwap Zapony's avatar
    Fix division-by-0 crash with gamepad deadzones · 27e084a8
    Zwip-Zwap Zapony authored
    Fix division-by-0 crash with gamepad deadzones
    The problem was that it checked if A was more than B,
    then lowered A to a max value, then subtracted B from A,
    then divided something by that, without checking if A minus B was 0,
    allowing division by 0 if B was the same as that max value
    
    This fixes that by making sure that A is less than the max value
    27e084a8