diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-07 03:11:12 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-07 03:11:12 +0400 |
commit | 6a7a144f500b59334224f250c6a816ae5d7327bf (patch) | |
tree | 2e4f0368b508eb63c5f96cad3e8ad1d3ba6ddb1e /intern | |
parent | a4c6e36aac7b7e99786198ce8a7f9ece5239365e (diff) |
BGE: Fix for [#33053] "2.6x Joystick Sensor Event: Axis fails to fire at full tilt" reported by Auuman Anubis (auuman_anubis).
The problem was that SCA_Joystick::pAxisTest() was using shorts, and tried to store abs(MIN_SHRT) in a short. However, on most systems MIN_SHRT == -32768 and MAX_SHRT == 32767. This means that abs(MIN_SHRT) > MAX_SHRT, and thus the short would overflow.
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions