From e5272cde78d23a297dad05976e8579b3e5759de4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Feb 2012 21:49:39 +0300 Subject: Fix incorrect last dead frame delay for old servers. --- src/resources/action.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/resources/action.cpp') diff --git a/src/resources/action.cpp b/src/resources/action.cpp index e1f88ecb7..6c799cdfa 100644 --- a/src/resources/action.cpp +++ b/src/resources/action.cpp @@ -69,3 +69,16 @@ void Action::setAnimation(int direction, Animation *animation) { mAnimations[direction] = animation; } + +void Action::setLastFrameDelay(int delay) +{ + AnimationIter it = mAnimations.begin(); + AnimationIter it_end = mAnimations.end(); + for (; it != it_end; ++ it) + { + Animation *animation = (*it).second; + if (!animation) + continue; + animation->setLastFrameDelay(delay); + } +} -- cgit v1.2.3-60-g2f50