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/animation.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/resources/animation.h') diff --git a/src/resources/animation.h b/src/resources/animation.h index 33bfd76e9..53e9adbea 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -102,13 +102,19 @@ class Animation void addGoto(std::string name, int rand); + void setLastFrameDelay(int delay); + /** * Determines whether the given animation frame is a terminator. */ static bool isTerminator(const Frame &phase); protected: - std::vector mFrames; + typedef std::vector Frames; + typedef Frames::iterator FramesIter; + typedef Frames::reverse_iterator FramesRevIter; + + Frames mFrames; int mDuration; }; -- cgit v1.2.3-60-g2f50