CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 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();