Construction droids now go help build a building instead of trying to repair it.
parent
90edf63fd2
commit
510d8d7735
18
src/order.c
18
src/order.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue