Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed some stupid mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 20, 2008
1 parent a11660f commit 968ba1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -301,7 +301,7 @@ GetSupportedFeatures(FFDeviceObjectReference device,
if (ret == FF_OK) supported |= SDL_HAPTIC_GAIN;
else if (ret != FFERR_UNSUPPORTED) {
SDL_SetError("Haptic: Unable to get if device supports gain: %s.",
FFStrError(ret););
FFStrError(ret));
return 0;
}

Expand Down Expand Up @@ -942,9 +942,7 @@ SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,
flags = FFEP_ALLPARAMS;

/* Create the actual effect. */
ret = FFEffectSetParameters(haptic->hwdata->device, effect->hweffect->ref,
&temp, flags);

ret = FFEffectSetParameters(effect->hweffect->ref, &temp, flags);
if (ret != FF_OK) {
SDL_SetError("Haptic: Unable to update effect: %s.", FFStrError(ret));
goto err_update;
Expand Down

0 comments on commit 968ba1a

Please sign in to comment.