Skip to content

Commit

Permalink
order.cpp: Remove special case for campaign
Browse files Browse the repository at this point in the history
In orderDroid, orderDroidStatsLocDir, orderDroidStatsTwoLocDir
  • Loading branch information
past-due committed Aug 4, 2023
1 parent c48d64f commit 814435a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ void orderDroid(DROID *psDroid, DROID_ORDER order, QUEUE_MODE mode)
"orderUnit: Invalid order");

DROID_ORDER_DATA sOrder(order);
if (mode == ModeQueue && bMultiPlayer)
if (mode == ModeQueue)
{
sendDroidInfo(psDroid, sOrder, false);
}
Expand Down Expand Up @@ -2113,7 +2113,7 @@ void orderDroidStatsLocDir(DROID *psDroid, DROID_ORDER order, STRUCTURE_STATS *p
ASSERT(order == DORDER_BUILD, "Invalid order for location");

DroidOrder sOrder(order, psStats, Vector2i(x, y), direction);
if (mode == ModeQueue && bMultiPlayer)
if (mode == ModeQueue)
{
sendDroidInfo(psDroid, sOrder, false);
return; // Wait for our order before changing the droid.
Expand Down Expand Up @@ -2148,7 +2148,7 @@ void orderDroidStatsTwoLocDir(DROID *psDroid, DROID_ORDER order, STRUCTURE_STATS
ASSERT(order == DORDER_LINEBUILD, "Invalid order for location");

DroidOrder sOrder(order, psStats, Vector2i(x1, y1), Vector2i(x2, y2), direction);
if (mode == ModeQueue && bMultiPlayer)
if (mode == ModeQueue)
{
sendDroidInfo(psDroid, sOrder, false);
return; // Wait for our order before changing the droid.
Expand Down

0 comments on commit 814435a

Please sign in to comment.