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

Commit

Permalink
Another important typo mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 7, 2008
1 parent f9a5701 commit 28cd9c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/haptic/linux/SDL_syshaptic.c
Expand Up @@ -451,13 +451,13 @@ SDL_SYS_ToFFEffect( struct ff_effect * dest, SDL_HapticEffect * src )
condition = &src->condition;

/* Header */
if (dest->type == SDL_HAPTIC_SPRING)
if (condition->type == SDL_HAPTIC_SPRING)
dest->type = FF_SPRING;
else if (dest->type == SDL_HAPTIC_DAMPER)
else if (condition->type == SDL_HAPTIC_DAMPER)
dest->type = FF_DAMPER;
else if (dest->type == SDL_HAPTIC_INERTIA)
else if (condition->type == SDL_HAPTIC_INERTIA)
dest->type = FF_INERTIA;
else if (dest->type == SDL_HAPTIC_FRICTION)
else if (condition->type == SDL_HAPTIC_FRICTION)
dest->type = FF_FRICTION;
dest->direction = 0; /* Handled by the condition-specifics. */

Expand Down

0 comments on commit 28cd9c7

Please sign in to comment.