Skip to content

Commit

Permalink
Patched to compile on non-C99 Microsoft compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 20, 2013
1 parent a614f18 commit c521ae8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/haptic/windows/SDL_syshaptic.c
Expand Up @@ -1564,9 +1564,8 @@ SDL_RunXInputHaptic(void *arg)
SDL_Delay(50);
SDL_LockMutex(hwdata->mutex);
/* If we're currently running and need to stop... */
const Uint32 stopTicks = hwdata->stopTicks;
if (stopTicks) {
if ((stopTicks != SDL_HAPTIC_INFINITY) && (stopTicks < SDL_GetTicks())) {
if (hwdata->stopTicks) {
if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && (hwdata->stopTicks < SDL_GetTicks())) {
XINPUT_VIBRATION vibration = { 0, 0 };
hwdata->stopTicks = 0;
XINPUTSETSTATE(hwdata->userid, &vibration);
Expand Down

0 comments on commit c521ae8

Please sign in to comment.