Author: boucman
Date: Fri May 25 19:31:33 2007
New Revision: 17849
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17849&view=rev
Log:
fix mvt animation being stuck on first frame
Modified:
trunk/src/unit.cpp
Modified: trunk/src/unit.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=17849&r1=17848&r2=17849&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Fri May 25 19:31:33 2007
@@ -1685,8 +1685,7 @@
void unit::set_walking(const display &disp,const gamemap::location& loc)
{
- movement_animation* const anim =
dynamic_cast<movement_animation*>(anim_);
- if(state_ == STATE_WALKING && anim != NULL &&
anim->matches(disp,loc,this) >=0) {
+ if(state_ == STATE_WALKING && anim_ != NULL &&
anim_->matches(disp,loc,this) >=0) {
return; // finish current animation, don't start a new one
}
state_ = STATE_WALKING;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits