Ver código fonte

Fix for bug when crossfading on apple platforms.
- incorrectly calling the integer absolute value function abs() instead of the floating point version fabs()
- Removes unneeded condition

Kieran Cunney 13 anos atrás
pai
commit
6b27fb2a2e
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      gameplay/src/AnimationClip.cpp

+ 1 - 2
gameplay/src/AnimationClip.cpp

@@ -342,8 +342,7 @@ bool AnimationClip::update(unsigned long elapsedTime)
     // Check to see if clip is complete.
     // Check to see if clip is complete.
     if (_repeatCount != REPEAT_INDEFINITE && ((_speed >= 0.0f && _elapsedTime >= (long) _activeDuration) || (_speed <= 0.0f && _elapsedTime <= 0L)))
     if (_repeatCount != REPEAT_INDEFINITE && ((_speed >= 0.0f && _elapsedTime >= (long) _activeDuration) || (_speed <= 0.0f && _elapsedTime <= 0L)))
     {
     {
-        if (!isClipStateBitSet(CLIP_IS_FADING_OUT_BIT))
-            resetClipStateBit(CLIP_IS_STARTED_BIT);
+        resetClipStateBit(CLIP_IS_STARTED_BIT);
         
         
         if (_speed >= 0.0f)
         if (_speed >= 0.0f)
         {
         {