Fixed bug : Bug in DeathCoilController

This commit is contained in:
jsalmon3 2003-03-26 04:40:31 +00:00
parent e5a6aba98b
commit a037eca7b5
2 changed files with 6 additions and 5 deletions
doc
src/stratagus

View file

@ -1133,8 +1133,9 @@
<LI><B>1.19pre1</B>
<LI>Fixed setup script for BSD and 'sh' (from ppl).
<LI>Added support for 16x16 tiles (from Jimmy Salmon).
<LI>Fixed Bug #704338: Crash: Town Hall Destroyed, Peasant inside
<LI>Fixed bug #704338: Crash: Town Hall Destroyed, Peasant inside
(from Russell Smith)
<LI>Fixed bug #707075: Bug in DeathCoilController (from Jimmy Salmon).
<LI>+++
</UL>
</UL>

View file

@ -279,17 +279,17 @@ local void SpellDeathCoilController(Missile * missile)
// disperse damage between them
//NOTE: 1 is the minimal damage
if (table[i]->HP <= 50 / ec ) {
source->Player->Score+=
source->Player->Score +=
table[i]->Type->Points;
if( missile->TargetUnit->Type->Building ) {
if( table[i]->Type->Building ) {
source->Player->TotalRazings++;
} else {
source->Player->TotalKills++;
}
#ifdef USE_HP_FOR_XP
source->XP+=table[i]->HP;
source->XP += table[i]->HP;
#else
source->XP+=table[i]->Type->Points;
source->XP += table[i]->Type->Points;
#endif
++source->Kills;
table[i]->HP = 0;