mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 15:28:34 +00:00
fix orbs disapearing on kill
This commit is contained in:
parent
d7f8e98a7b
commit
5ac39c8537
@ -376,6 +376,8 @@ bool unit_attack_ranged(display& disp, unit_map& units,
|
|||||||
|
|
||||||
if(dead) {
|
if(dead) {
|
||||||
unit_display::unit_die(disp,def->first,def->second,&attack);
|
unit_display::unit_die(disp,def->first,def->second,&attack);
|
||||||
|
if(leader_loc.valid()) leader->second.set_standing(disp,leader_loc);
|
||||||
|
att->second.set_standing(disp,a);
|
||||||
}
|
}
|
||||||
disp.update_display();
|
disp.update_display();
|
||||||
events::pump();
|
events::pump();
|
||||||
@ -508,6 +510,8 @@ bool unit_attack(display& disp, unit_map& units,
|
|||||||
|
|
||||||
if(dead) {
|
if(dead) {
|
||||||
unit_display::unit_die(disp,def->first,def->second,&attack);
|
unit_display::unit_die(disp,def->first,def->second,&attack);
|
||||||
|
if(leader_loc.valid()) leader->second.set_standing(disp,leader_loc);
|
||||||
|
att->second.set_standing(disp,a);
|
||||||
}
|
}
|
||||||
disp.update_display();
|
disp.update_display();
|
||||||
events::pump();
|
events::pump();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user