Widened Sint16 to Sint32 for centered joystick value, as the result of <Sint16> - <Sint16> might be greater than an Sint16.
This commit is contained in:
@@ -619,7 +619,7 @@ void Client::tick (double dtime)
|
|||||||
{
|
{
|
||||||
const double timestep = 0.01; // 10ms
|
const double timestep = 0.01; // 10ms
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
Sint16 joy_x, joy_y;
|
Sint32 joy_x, joy_y;
|
||||||
SDL_Joystick *joy;
|
SDL_Joystick *joy;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user