fix bug #8626 (incorrect death sound played)

This commit is contained in:
Jérémy Rosen 2007-03-02 20:54:23 +00:00
parent 68e95a0d1c
commit 945c4d54bd
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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;