# HG changeset patch # User Edgar Simo # Date 1217500291 0 # Node ID 698c776c642f8cd1f090c35f9e269ab2e6188767 # Parent c9348710a98a7947d5b1471fa3de6e47dea1f81d Fixed broken envelopes. diff -r c9348710a98a -r 698c776c642f src/haptic/darwin/SDL_syshaptic.c --- a/src/haptic/darwin/SDL_syshaptic.c Thu Jul 31 10:26:21 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Thu Jul 31 10:31:31 2008 +0000 @@ -655,7 +655,7 @@ } /* Envelope */ - if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) { + if ((hap_constant->attack_length==0) && (hap_constant->fade_length==0)) { SDL_free(envelope); dest->lpEnvelope = NULL; } @@ -701,7 +701,7 @@ } /* Envelope */ - if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) { + if ((hap_periodic->attack_length==0) && (hap_periodic->fade_length==0)) { SDL_free(envelope); dest->lpEnvelope = NULL; } @@ -788,7 +788,7 @@ } /* Envelope */ - if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) { + if ((hap_ramp->attack_length==0) && (hap_ramp->fade_length==0)) { SDL_free(envelope); dest->lpEnvelope = NULL; } @@ -833,7 +833,7 @@ } /* Envelope */ - if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) { + if ((hap_custom->attack_length==0) && (hap_custom->fade_length==0)) { SDL_free(envelope); dest->lpEnvelope = NULL; }