Skip to content

Commit 2b9bcfd

Browse files
style: Apply clang-format
1 parent 12621f0 commit 2b9bcfd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

source/glest_game/game/commander.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,18 +306,18 @@ std::pair<CommandResult, string> Commander::tryGiveCommand(const Selection *sele
306306
if (a->getCommandSize() != b->getCommandSize()) {
307307
return a->getCommandSize() < b->getCommandSize();
308308
}
309-
309+
310310
// Tiebreaker: if queue size is the same, prefer non-producing units
311311
bool aProducing = false, bProducing = false;
312-
312+
313313
if (a->getCurrCommand() != NULL && a->getCurrCommand()->getCommandType()->getClass() == ccProduce) {
314314
aProducing = true;
315315
}
316316
if (b->getCurrCommand() != NULL && b->getCurrCommand()->getCommandType()->getClass() == ccProduce) {
317317
bProducing = true;
318318
}
319-
320-
return !aProducing && bProducing; // non-producing comes first
319+
320+
return !aProducing && bProducing; // non-producing comes first
321321
});
322322

323323
// give orders to selected units, cycling through them fairly
@@ -328,7 +328,7 @@ std::pair<CommandResult, string> Commander::tryGiveCommand(const Selection *sele
328328
// Cycle through sorted units to distribute commands fairly
329329
const Unit *unit = sortedUnits[unitIndex];
330330
unitIndex = (unitIndex + 1) % sortedUnits.size();
331-
331+
332332
assert(unit != NULL);
333333

334334
currPos = world->getMap()->computeDestPos(refPos, unit->getPosNotThreadSafe(), pos);

0 commit comments

Comments
 (0)