Aivolution:
-fixed a bug that made Aivolution defend its own derrick instead attacking an unprotected enemy derrick by building a bunker near it. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4449 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
64f742d33f
commit
8a12c396f4
|
@ -6349,7 +6349,7 @@ function bool manageOilSite(DROID _truck, STRUCTURE _derrick)
|
|||
if(!_bThreat)
|
||||
{
|
||||
// build defenses near enemy derrick => destroy it
|
||||
if(buildDerrickDefence(_derrick, _truck))
|
||||
if(buildDerrickDefence(_enemyDerrick, _truck))
|
||||
{
|
||||
dbg("ATTACKING ENEMY DERRICK WITH DEFENSES!!!", me);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue