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:
Michi
2010-10-18 22:45:38 +02:00
parent 73623a740e
commit 31e627d267

View File

@@ -619,7 +619,7 @@ void Client::tick (double dtime)
{
const double timestep = 0.01; // 10ms
#ifdef ANDROID
Sint16 joy_x, joy_y;
Sint32 joy_x, joy_y;
SDL_Joystick *joy;
#endif