Completely clear order queues, including orders queued to be placed in an order queue.
Should be a sendQueuedDroidInfo() to flush the order-queue queue. This fixes droids moving or even attacking own structures after loading a game, due to left-over orders.master
parent
99ca8043a5
commit
d74a73a34d
|
@ -1001,6 +1001,7 @@ bool stageTwoInitialise(void)
|
|||
// Setup game queues.
|
||||
// Don't ask why this doesn't go in stage three. In fact, don't even ask me what stage one/two/three is supposed to mean, it seems about as descriptive as stage doStuff, stage doMoreStuff and stage doEvenMoreStuff...
|
||||
debug(LOG_MAIN, "Init game queues, I am %d.", selectedPlayer);
|
||||
sendQueuedDroidInfo(); // Discard any pending orders which could later get flushed into the game queue.
|
||||
for (i = 0; i < MAX_PLAYERS; ++i)
|
||||
{
|
||||
NETinitQueue(NETgameQueue(i));
|
||||
|
|
Loading…
Reference in New Issue