- split a huge assignment for easier debugging

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1725 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-05-27 19:40:34 +00:00
parent f9783ff29f
commit a07a76db54
1 changed files with 6 additions and 7 deletions

View File

@ -3675,13 +3675,12 @@ UDWORD calcTemplatePower(DROID_TEMPLATE *psTemplate)
UDWORD power, i;
//get the component power
power = (asBodyStats + psTemplate->asParts[COMP_BODY])->buildPower +
(asBrainStats + psTemplate->asParts[COMP_BRAIN])->buildPower +
//(asPropulsionStats + psTemplate->asParts[COMP_PROPULSION])->buildPower +
(asSensorStats + psTemplate->asParts[COMP_SENSOR])->buildPower +
(asECMStats + psTemplate->asParts[COMP_ECM])->buildPower +
(asRepairStats + psTemplate->asParts[COMP_REPAIRUNIT])->buildPower +
(asConstructStats + psTemplate->asParts[COMP_CONSTRUCT])->buildPower;
power = (asBodyStats + psTemplate->asParts[COMP_BODY])->buildPower;
power += (asBrainStats + psTemplate->asParts[COMP_BRAIN])->buildPower;
power += (asSensorStats + psTemplate->asParts[COMP_SENSOR])->buildPower;
power += (asECMStats + psTemplate->asParts[COMP_ECM])->buildPower;
power += (asRepairStats + psTemplate->asParts[COMP_REPAIRUNIT])->buildPower;
power += (asConstructStats + psTemplate->asParts[COMP_CONSTRUCT])->buildPower;
/* propulsion power points are a percentage of the bodys' power points */
power += (((asPropulsionStats + psTemplate->asParts[COMP_PROPULSION])->buildPower *