From c521ae84bce2c927fd52e9062c0206751c9a1b7e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 20 Oct 2013 16:02:24 -0400 Subject: [PATCH] Patched to compile on non-C99 Microsoft compiler. --- src/haptic/windows/SDL_syshaptic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/haptic/windows/SDL_syshaptic.c b/src/haptic/windows/SDL_syshaptic.c index 2f29fedca..fa03afed1 100644 --- a/src/haptic/windows/SDL_syshaptic.c +++ b/src/haptic/windows/SDL_syshaptic.c @@ -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);