Skip to content

Commit

Permalink
Fix desynch when units are repaired, and the repair facility flag is …
Browse files Browse the repository at this point in the history
…not in the default position.

Was droids moving without sending a net message to the flags, even though the flags aren't currently synchronised.
  • Loading branch information
Cyp committed Dec 17, 2010
1 parent d9813b3 commit 3e301fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structure.c
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,7 @@ static void aiUpdateStructure(STRUCTURE *psStructure, bool isMission)
objTrace(psDroid->id, "Repair not needed - move to delivery point");
orderDroidLoc(psDroid, DORDER_MOVE,
psRepairFac->psDeliveryPoint->coords.x,
psRepairFac->psDeliveryPoint->coords.y, ModeImmediate);
psRepairFac->psDeliveryPoint->coords.y, ModeQueue); // ModeQueue because delivery points are not yet synchronised!
}
continue;
}
Expand Down Expand Up @@ -3701,7 +3701,7 @@ static void aiUpdateStructure(STRUCTURE *psStructure, bool isMission)
objTrace(psDroid->id, "Repair complete - move to delivery point");
orderDroidLoc( psDroid, DORDER_MOVE,
psRepairFac->psDeliveryPoint->coords.x,
psRepairFac->psDeliveryPoint->coords.y, ModeImmediate);
psRepairFac->psDeliveryPoint->coords.y, ModeQueue); // ModeQueue because delivery points are not yet synchronised!
}
}
}
Expand Down

0 comments on commit 3e301fb

Please sign in to comment.