Fixed compilation on MSVC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1111 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
35de2b63f1
commit
ac33b9f5dd
|
@ -3612,6 +3612,7 @@ static void intSetDesignPower(DROID_TEMPLATE *psTemplate)
|
|||
static void intSetTemplatePowerShadowStats(COMP_BASE_STATS *psStats)
|
||||
{
|
||||
UDWORD type;
|
||||
UDWORD power, i;
|
||||
|
||||
if (psStats != NULL) {
|
||||
COMP_BASE_STATS* bodyStats = asBodyStats + sCurrDesign.asParts[COMP_BODY];
|
||||
|
@ -3684,8 +3685,8 @@ static void intSetTemplatePowerShadowStats(COMP_BASE_STATS *psStats)
|
|||
//default:
|
||||
//don't want to draw for unknown comp
|
||||
}
|
||||
|
||||
// this code is from calcTemplatePower
|
||||
UDWORD power, i;
|
||||
|
||||
//get the component power
|
||||
power = bodyStats->buildPower + brainStats->buildPower + sensorStats->buildPower + ECMStats->buildPower + repairStats->buildPower + constructStats->buildPower;
|
||||
|
@ -3723,6 +3724,7 @@ static void intSetBodyPoints(DROID_TEMPLATE *psTemplate)
|
|||
static void intSetTemplateBodyShadowStats(COMP_BASE_STATS *psStats)
|
||||
{
|
||||
UDWORD type;
|
||||
UDWORD body, i;
|
||||
|
||||
if (psStats != NULL) {
|
||||
COMP_BASE_STATS* bodyStats = asBodyStats + sCurrDesign.asParts[COMP_BODY];
|
||||
|
@ -3795,8 +3797,8 @@ static void intSetTemplateBodyShadowStats(COMP_BASE_STATS *psStats)
|
|||
//default:
|
||||
//don't want to draw for unknown comp
|
||||
}
|
||||
|
||||
// this code is from calcTemplateBody
|
||||
UDWORD body, i;
|
||||
|
||||
//get the component power
|
||||
body = bodyStats->body + brainStats->body + sensorStats->body + ECMStats->body + repairStats->body + constructStats->body;
|
||||
|
|
Loading…
Reference in New Issue