Blender Git Commit Log
Git Commits -> Revision 6a7a144
Revision 6a7a144 by Mitchell Stokes (master) January 6, 2013, 23:11 (GMT) |
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. |
Commit Details:
Full Hash: 6a7a144f500b59334224f250c6a816ae5d7327bf
SVN Revision: 53617
Parent Commit: a4c6e36
Lines Changed: +5, -2
1 Modified Path:
/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp (+5, -2) (Diff)