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-861f7616d084
master
Roman C 2007-10-02 13:37:30 +00:00
parent 77e4d5fda8
commit 0f37cc5854
1 changed files with 1 additions and 1 deletions

View File

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