Mercurial > fife-parpg
diff engine/core/view/camera.cpp @ 349:493f7492f0ba
Fixed a problem with Camera::render() involving the way it calculates the animation frame number.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 03 Sep 2009 23:22:28 +0000 |
parents | ed1565a5a2a0 |
children | d98e398d3057 |
line wrap: on
line diff
--- a/engine/core/view/camera.cpp Thu Sep 03 23:09:57 2009 +0000 +++ b/engine/core/view/camera.cpp Thu Sep 03 23:22:28 2009 +0000 @@ -546,7 +546,7 @@ if (action) { int animation_id = action->getVisual<ActionVisual>()->getAnimationIndexByAngle(angle); Animation& animation = m_apool->getAnimation(animation_id); - unsigned int animtime = instance->getRuntime() % animation.getDuration(); + unsigned int animtime = instance->getActionRuntime() % animation.getDuration(); image = animation.getFrameByTimestamp(animtime); } }