Author: alink
Date: Sat Nov 3 19:04:35 2007
New Revision: 21469
URL: http://svn.gna.org/viewcvs/wesnoth?rev=21469&view=rev
Log:
update which anim is wanted (idle/select) before check if this anim need update
Seems to have no visible impact, but slightly cleaner (it's same anim which ask
update and is updated)
Modified:
trunk/src/game_display.cpp
Modified: trunk/src/game_display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=21469&r1=21468&r2=21469&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Sat Nov 3 19:04:35 2007
@@ -944,14 +944,14 @@
unit_map::iterator unit;
for(unit=units_.begin() ; unit != units_.end() ; unit++) {
+ temp_unit_->refresh(*this, temp_unit_loc_);
if (unit->second.get_animation() &&
unit->second.get_animation()->need_update())
invalidate(unit->first);
- unit->second.refresh(*this,unit->first);
}
if (temp_unit_ ) {
+ temp_unit_->refresh(*this, temp_unit_loc_);
if (temp_unit_->get_animation() &&
temp_unit_->get_animation()->need_update())
invalidate(temp_unit_loc_);
- temp_unit_->refresh(*this, temp_unit_loc_);
}
if (!preferences::animate_map()) {return;}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits