Author: alink
Date: Sat Nov  3 18:42:31 2007
New Revision: 21467

URL: http://svn.gna.org/viewcvs/wesnoth?rev=21467&view=rev
Log:
Fix another old little glitch of idle animation:
if it has only one frame, this frame lingers

Modified:
    trunk/src/unit.hpp

Modified: trunk/src/unit.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=21467&r1=21466&r2=21467&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Sat Nov  3 18:42:31 2007
@@ -124,7 +124,7 @@
        void new_level();
        //! Called on every draw
        void refresh(const game_display& disp,const gamemap::location& loc) {
-               if (state_ == STATE_IDLING && anim_ && 
anim_->animation_finished()) {
+               if (state_ == STATE_IDLING && anim_ && 
anim_->animation_would_finish()) {
                        set_standing(disp, loc);
                        return;
                }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to