mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:28:16 +00:00
added support for animated deaths
This commit is contained in:
parent
d63773ebc1
commit
cea9596318
@ -290,8 +290,11 @@ void unit_die(display& disp, const gamemap::location& loc, const unit& u, const
|
||||
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user