Construction droids now go help build a building instead of trying to repair it.

master
Gerard Krol 2009-04-04 18:48:33 +02:00
parent 90edf63fd2
commit 510d8d7735
1 changed files with 16 additions and 2 deletions

View File

@ -365,7 +365,14 @@ void orderUpdateDroid(DROID *psDroid)
psObj = checkForDamagedStruct(psDroid,NULL);
if (psObj && (!bMultiPlayer || myResponsibility(psDroid->player)))
{
orderDroidObj(psDroid, DORDER_REPAIR, psObj);
if (psStruct->status == SS_BUILT)
{
orderDroidObj(psDroid, DORDER_REPAIR, psObj);
}
else
{
orderDroidObj(psDroid, DORDER_HELPBUILD, psObj);
}
}
}
@ -1238,7 +1245,14 @@ void orderUpdateDroid(DROID *psDroid)
}
if (psObj)
{
actionDroidObj(psDroid, DACTION_REPAIR, psObj);
if (psStruct->status == SS_BUILT)
{
orderDroidObj(psDroid, DORDER_REPAIR, psObj);
}
else
{
orderDroidObj(psDroid, DORDER_HELPBUILD, psObj);
}
}
}
break;