mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 20:01:21 +00:00
fix bug #8626 (incorrect death sound played)
This commit is contained in:
parent
68e95a0d1c
commit
945c4d54bd
@ -22,6 +22,9 @@ Version 1.3.1+svn:
|
||||
* new [own_village] condition to check if someone own a particular village
|
||||
* new [store_villages] tag to store village locations
|
||||
* all [store_*] tags get a default variable name
|
||||
* Misceleanous bug fixes
|
||||
* a unit that dies while attacking will now correctly play it's own death
|
||||
sounds
|
||||
|
||||
Version 1.3.1:
|
||||
* Campaignd
|
||||
|
@ -13,6 +13,8 @@ Version 1.3.1+svn:
|
||||
* Language and translations
|
||||
* Updated translations: Bulgarian, Czech, Danish.
|
||||
* New translations: Indonesian
|
||||
* Misceleanous bugs
|
||||
* Units that die while attacking are now correctly playing their death sound insteand of their oponent's
|
||||
|
||||
Version 1.3.1:
|
||||
* Campaigns
|
||||
|
@ -1059,7 +1059,7 @@ attack::attack(display& gui, const gamemap& map,
|
||||
bool dies = a_->second.take_hit(damage_attacker_takes);
|
||||
LOG_NG << "attacker took " << damage_attacker_takes << (dies ? " and died" : "") << "\n";
|
||||
if(dies) {
|
||||
unit_display::unit_die(gui_,attacker_,d_->second,a_stats_->weapon,d_stats_->weapon, &(d_->second));
|
||||
unit_display::unit_die(gui_,attacker_,a_->second,a_stats_->weapon,d_stats_->weapon, &(d_->second));
|
||||
}
|
||||
if(ran_results == NULL) {
|
||||
config cfg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user