Skip to content

Commit

Permalink
Completely clear order queues, including orders queued to be placed i…
Browse files Browse the repository at this point in the history
…n 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.
  • Loading branch information
Cyp committed Sep 12, 2011
1 parent 99ca804 commit d74a73a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/init.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit d74a73a

Please sign in to comment.