Fixed calculation of percentage damage dealt to structures and thus leveling up of units when damaging structures.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2523 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
77e4d5fda8
commit
0f37cc5854
|
@ -1314,7 +1314,7 @@ SDWORD structureDamage(STRUCTURE *psStructure, UDWORD damage, UDWORD weaponClass
|
|||
// Do at least one point of damage
|
||||
unsigned int actualDamage = 1;
|
||||
float body = (float) psStructure->body;
|
||||
float originalBody = (float) psStructure->pStructureType->bodyPoints;
|
||||
float originalBody = (float) structureBody(psStructure);
|
||||
|
||||
CHECK_STRUCTURE(psStructure);
|
||||
|
||||
|
|
Loading…
Reference in New Issue