Blender Git Loki

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021