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: Mon, 21 Mar 2005 20:49:40 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/03/22 01:49:40

Modified files:
        src            : unit_display.cpp 

Log message:
        added support for animated deaths

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

Patches:
Index: wesnoth/src/unit_display.cpp
diff -u wesnoth/src/unit_display.cpp:1.53 wesnoth/src/unit_display.cpp:1.54
--- wesnoth/src/unit_display.cpp:1.53   Tue Mar 22 01:14:14 2005
+++ wesnoth/src/unit_display.cpp        Tue Mar 22 01:49:40 2005
@@ -290,8 +290,11 @@
                while(!anim.animation_finished()) {
 
                        const unit_animation::frame& frame = 
anim.get_current_frame();
-
-                       unit_image = surface(image::get_image(frame.image));
+                       
+                       const surface surf(image::get_image(frame.image));
+                       if(surf.get() != NULL) {
+                               unit_image = surf;
+                       }
                        disp.draw_tile(loc.x,loc.y,unit_image);
                        disp.update_display();
 




reply via email to

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