Fix compiler error on a "suggestion".

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7235 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-04-29 01:13:36 +00:00 committed by Git SVN Gateway
parent c4d38188d3
commit f3281e7d89
1 changed files with 2 additions and 2 deletions

View File

@ -3151,8 +3151,8 @@ static void aiUpdateStructure(STRUCTURE *psStructure, bool mission)
xdiff = (SDWORD)psDroid->pos.x - (SDWORD)psStructure->pos.x;
ydiff = (SDWORD)psDroid->pos.y - (SDWORD)psStructure->pos.y;
if (psDroid->action == DACTION_WAITFORREPAIR ||
psDroid->action == DACTION_WAITDURINGREPAIR
&& xdiff*xdiff + ydiff*ydiff > (TILE_UNITS*5/2)*(TILE_UNITS*5/2))
(psDroid->action == DACTION_WAITDURINGREPAIR
&& xdiff*xdiff + ydiff*ydiff > (TILE_UNITS*5/2)*(TILE_UNITS*5/2)))
{
objTrace(psStructure->id, "Requesting droid %d to come to us", (int)psDroid->id);
actionDroidObjLoc(psDroid, DACTION_MOVETOREPAIRPOINT,