src/haptic/SDL_haptic.c
changeset 6389 43a190ad60a7
parent 6138 4c64952a58fb
child 6690 9548c8a58103
     1.1 --- a/src/haptic/SDL_haptic.c	Wed Aug 08 13:44:58 2012 -0400
     1.2 +++ b/src/haptic/SDL_haptic.c	Thu Aug 09 14:14:41 2012 -0400
     1.3 @@ -766,7 +766,6 @@
     1.4  int
     1.5  SDL_HapticRumblePlay(SDL_Haptic * haptic, float strength, Uint32 length)
     1.6  {
     1.7 -    int ret;
     1.8      SDL_HapticPeriodic *efx;
     1.9  
    1.10      if (!ValidHaptic(haptic)) {
    1.11 @@ -790,7 +789,7 @@
    1.12      efx = &haptic->rumble_effect.periodic;
    1.13      efx->magnitude = (Sint16)(32767.0f*strength);
    1.14      efx->length = length;
    1.15 -    ret = SDL_HapticUpdateEffect(haptic, haptic->rumble_id, &haptic->rumble_effect);
    1.16 +    SDL_HapticUpdateEffect(haptic, haptic->rumble_id, &haptic->rumble_effect);
    1.17  
    1.18      return SDL_HapticRunEffect(haptic, haptic->rumble_id, 1);
    1.19  }