newnet: Make DORDER_RTB on a droid with DACTION_MOVETOBUILD not crash in skirmish.
Don't know why it's only in newnet and not trunk, that the AI sends DORDER_RTB in skirmish. Closes ticket:2010.master
parent
4e8f1fb7f3
commit
0c93c007b9
|
@ -709,6 +709,8 @@ BOOL recvDroidInfo(NETQUEUE queue)
|
|||
continue; // Can't find the droid, so skip this droid.
|
||||
}
|
||||
|
||||
CHECK_DROID(psDroid);
|
||||
|
||||
syncDebugDroid(psDroid, '<');
|
||||
|
||||
psDroid->waitingForOwnReceiveDroidInfoMessage = false;
|
||||
|
@ -750,6 +752,7 @@ BOOL recvDroidInfo(NETQUEUE queue)
|
|||
|
||||
syncDebugDroid(psDroid, '>');
|
||||
|
||||
CHECK_DROID(psDroid);
|
||||
}
|
||||
}
|
||||
NETend();
|
||||
|
|
|
@ -1866,7 +1866,10 @@ void orderDroidBase(DROID *psDroid, DROID_ORDER_DATA *psOrder)
|
|||
else
|
||||
{
|
||||
// haven't got an LZ set up so don't do anything
|
||||
actionDroid(psDroid, DACTION_NONE);
|
||||
psDroid->order = DORDER_NONE;
|
||||
setDroidTarget(psDroid, NULL);
|
||||
psDroid->psTarStats = NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue