Sensor targeting fix by Thomas Rast

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1339 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-04-02 20:51:08 +00:00
parent 0730665b1e
commit 07f6c04ecd
1 changed files with 2 additions and 2 deletions

View File

@ -3261,8 +3261,8 @@ DROID_ORDER chooseOrderObj(DROID *psDroid, BASE_OBJECT *psObj)
}
}
// else default to attack if the droid has a weapon
//else if (psDroid->numWeaps > 0
else if (psDroid->asWeaps[0].nStat > 0
else if (psDroid->numWeaps > 0
//else if (psDroid->asWeaps[0].nStat > 0
&& psObj->player != psDroid->player
&& !aiCheckAlliances(psObj->player , psDroid->player) )
{