Author: alink
Date: Fri Nov  2 14:32:23 2007
New Revision: 21429

URL: http://svn.gna.org/viewcvs/wesnoth?rev=21429&view=rev
Log:
Fix blink/refresh of the ellipse in the unit-select animation
Remove the scrolling to the newly-selected unit (when partially off-screen)
because it was very disturbing and it slowed user inputs
(+ had a little bug: hex was empty during scrolling)

Modified:
    trunk/src/unit_display.cpp

Modified: trunk/src/unit_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_display.cpp?rev=21429&r1=21428&r2=21429&view=diff
==============================================================================
--- trunk/src/unit_display.cpp (original)
+++ trunk/src/unit_display.cpp Fri Nov  2 14:32:23 2007
@@ -426,11 +426,7 @@
        unit_map::iterator u = disp->get_units().find(loc);
        if(u == disp->get_units().end()) return;
 
-       u->second.set_hidden(true);
-       disp->scroll_to_tile(loc,game_display::ONSCREEN);
-       disp->draw();
        
u->second.start_animation(*disp,loc,u->second.choose_animation(*disp,loc,"selected"),true);
-       u->second.set_hidden(false);
        while(!u->second.get_animation()->animation_finished()) {
 
                disp->invalidate(loc);


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

Reply via email to