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-861f7616d084master
parent
377adc40d6
commit
bc9e5fa1de
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue