Stock AI:

Ported fix to bug #11122 from Branch to Trunk (player0.slo was already fixed in r3875).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3886 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2008-03-01 18:11:04 +00:00
parent 377adc40d6
commit bc9e5fa1de
7 changed files with 7 additions and 7 deletions

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }

View File

@ -1160,7 +1160,7 @@ function bool upgradePowGen(DROID _truck, int _maxBuilders)
if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) + if((numBuildSameBuilding(powModule, _powGen.x,_powGen.y) +
numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders) numBuildSameBuilding(powGen, _powGen.x,_powGen.y)) < _maxBuilders)
{ {
orderDroidStatsLoc(_truck, DORDER_BUILD,resModule, _powGen.x,_powGen.y); // upgrade it. orderDroidStatsLoc(_truck, DORDER_BUILD, powModule, _powGen.x,_powGen.y); // upgrade it.
return TRUE; return TRUE;
} }
} }