Another important typo mistake. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Mon, 07 Jul 2008 17:01:14 +0000
branchgsoc2008_force_feedback
changeset 250384a634009a83
parent 2502 5356ca0c36a3
child 2504 e68c99a19a2f
Another important typo mistake.
src/haptic/linux/SDL_syshaptic.c
     1.1 --- a/src/haptic/linux/SDL_syshaptic.c	Mon Jul 07 16:58:16 2008 +0000
     1.2 +++ b/src/haptic/linux/SDL_syshaptic.c	Mon Jul 07 17:01:14 2008 +0000
     1.3 @@ -451,13 +451,13 @@
     1.4           condition = &src->condition;
     1.5  
     1.6           /* Header */
     1.7 -         if (dest->type == SDL_HAPTIC_SPRING)
     1.8 +         if (condition->type == SDL_HAPTIC_SPRING)
     1.9              dest->type = FF_SPRING;
    1.10 -         else if (dest->type == SDL_HAPTIC_DAMPER)
    1.11 +         else if (condition->type == SDL_HAPTIC_DAMPER)
    1.12              dest->type = FF_DAMPER;
    1.13 -         else if (dest->type == SDL_HAPTIC_INERTIA)
    1.14 +         else if (condition->type == SDL_HAPTIC_INERTIA)
    1.15              dest->type = FF_INERTIA;
    1.16 -         else if (dest->type == SDL_HAPTIC_FRICTION)
    1.17 +         else if (condition->type == SDL_HAPTIC_FRICTION)
    1.18              dest->type = FF_FRICTION;
    1.19           dest->direction = 0; /* Handled by the condition-specifics. */
    1.20