Mercurial > fife-parpg
changeset 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 | 48c38e92e2bd |
children | 7ea98190a75e |
files | engine/core/view/camera.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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); } }