effect_position.c
changeset 238 2eae977be9d0
parent 218 a21e382190a8
child 241 503416fca921
     1.1 --- a/effect_position.c	Sun Nov 09 20:11:30 2003 +0000
     1.2 +++ b/effect_position.c	Mon Nov 10 04:33:21 2003 +0000
     1.3 @@ -272,9 +272,9 @@
     1.4      int i;
     1.5  
     1.6      for (i = 0; i < len; i += sizeof (Sint16) * 2) {
     1.7 -        Sint16 swapl = (Sint16) ((((float) SDL_SwapLE16(*(ptr+0))) *
     1.8 +        Sint16 swapl = (Sint16) ((((float) (Sint16) SDL_SwapLE16(*(ptr+0))) *
     1.9                                      args->left_f) * args->distance_f);
    1.10 -        Sint16 swapr = (Sint16) ((((float) SDL_SwapLE16(*(ptr+1))) *
    1.11 +        Sint16 swapr = (Sint16) ((((float) (Sint16) SDL_SwapLE16(*(ptr+1))) *
    1.12                                      args->right_f) * args->distance_f);
    1.13          *(ptr++) = (Sint16) SDL_SwapLE16(swapl);
    1.14          *(ptr++) = (Sint16) SDL_SwapLE16(swapr);
    1.15 @@ -310,9 +310,9 @@
    1.16      int i;
    1.17  
    1.18      for (i = 0; i < len; i += sizeof (Sint16) * 2) {
    1.19 -        Sint16 swapl = (Sint16) ((((float) SDL_SwapBE16(*(ptr+0))) *
    1.20 +        Sint16 swapl = (Sint16) ((((float) (Sint16) SDL_SwapBE16(*(ptr+0))) *
    1.21                                      args->left_f) * args->distance_f);
    1.22 -        Sint16 swapr = (Sint16) ((((float) SDL_SwapBE16(*(ptr+1))) *
    1.23 +        Sint16 swapr = (Sint16) ((((float) (Sint16) SDL_SwapBE16(*(ptr+1))) *
    1.24                                      args->right_f) * args->distance_f);
    1.25          *(ptr++) = (Sint16) SDL_SwapBE16(swapl);
    1.26          *(ptr++) = (Sint16) SDL_SwapBE16(swapr);