wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src unit_display.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src unit_display.cpp
Date: Fri, 28 Jan 2005 19:30:03 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/01/29 00:30:03

Modified files:
        src            : unit_display.cpp 

Log message:
        fixed bug where units would flicker back to their normal standing frame 
between attacking and resuming their defensive pose

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/unit_display.cpp.diff?tr1=1.45&tr2=1.46&r1=text&r2=text

Patches:
Index: wesnoth/src/unit_display.cpp
diff -u wesnoth/src/unit_display.cpp:1.45 wesnoth/src/unit_display.cpp:1.46
--- wesnoth/src/unit_display.cpp:1.45   Fri Dec 31 21:01:37 2004
+++ wesnoth/src/unit_display.cpp        Sat Jan 29 00:30:03 2005
@@ -583,13 +583,13 @@
        if(leader_loc.valid()){
                leader->second.set_leading(false);
        }
-
-       disp.draw_tile(a.x,a.y);
-       disp.draw_tile(b.x,b.y);
+
+       disp.invalidate(a);
+       disp.invalidate(b);
 
        def->second.set_standing();
 
-       if(leader_loc.valid()){
+       if(leader_loc.valid()){
                disp.draw_tile(leader_loc.x,leader_loc.y);
        }
 
@@ -597,8 +597,6 @@
                unit_die(disp,def->first,def->second);
        }
 
-       disp.update_display();
-
        return dead;
 }
 
@@ -848,9 +846,9 @@
        if(leader_loc.valid()){
                leader->second.set_leading(false);
        }
-
-       disp.draw_tile(a.x,a.y);
-       disp.draw_tile(b.x,b.y);
+
+       disp.invalidate(a);
+       disp.invalidate(b);
        if(leader_loc.valid()) {
                disp.draw_tile(leader_loc.x,leader_loc.y);
        }
@@ -861,8 +859,6 @@
                unit_display::unit_die(disp,def->first,def->second);
        }
 
-       disp.update_display();
-
        return dead;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]