# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1252020148 0 # Node ID 493f7492f0bad384c53c408a26fd3038fd25f9c2 # Parent 48c38e92e2bdbb9422616ee8ceb3bbf2ff0e4a43 Fixed a problem with Camera::render() involving the way it calculates the animation frame number. diff -r 48c38e92e2bd -r 493f7492f0ba engine/core/view/camera.cpp --- 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()->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); } }