diff options
Diffstat (limited to 'src/animation/AnimBlendAssociation.cpp')
-rw-r--r-- | src/animation/AnimBlendAssociation.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/animation/AnimBlendAssociation.cpp b/src/animation/AnimBlendAssociation.cpp index 78f8eb95..9a29601b 100644 --- a/src/animation/AnimBlendAssociation.cpp +++ b/src/animation/AnimBlendAssociation.cpp @@ -7,7 +7,7 @@ #include "AnimBlendAssociation.h" #include "RwHelper.h" -//--MIAMI: file done except for one TODO +//--MIAMI: file done CAnimBlendAssociation::CAnimBlendAssociation(void) { @@ -160,6 +160,13 @@ CAnimBlendAssociation::Start(float time) SetCurrentTime(time); } +void +CAnimBlendAssociation::UpdateTimeStep(float timeDelta, float relSpeed) +{ + if(IsRunning()) + timeStep = (flags & ASSOC_MOVEMENT ? relSpeed*hierarchy->totalLength : speed) * timeDelta; +} + bool CAnimBlendAssociation::UpdateTime(float timeDelta, float relSpeed) { @@ -170,10 +177,6 @@ CAnimBlendAssociation::UpdateTime(float timeDelta, float relSpeed) return true; } - // TODO(MIAMI): we still need this for some reason -#ifndef NOT_YET - timeStep = (flags & ASSOC_MOVEMENT ? relSpeed*hierarchy->totalLength : speed) * timeDelta; -#endif currentTime += timeStep; if(currentTime >= hierarchy->totalLength){ |