Skip to content
Snippets Groups Projects
Commit 27e084a8 authored by Zwip-Zwap Zapony's avatar Zwip-Zwap Zapony
Browse files

Fix division-by-0 crash with gamepad deadzones

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
parent 7d147969
No related branches found
No related tags found
2 merge requests!892Funny shaders master merge,!838Fix division-by-0 crash from 100% gamepad deadzones, and lack of input from 0% deadzones
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment