summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-11 16:25:06 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-11 16:25:06 +0200
commitd26eb7e8a2ebff62e5a410f8aa315d7708734f3a (patch)
treed7ec097af20b39c362260b978056ff3be539cea8 /core/src/ch/asynk/rustanddust
parentb24bf45d4dea25b6df5b9147465417d449a1d2ad (diff)
downloadRustAndDust-d26eb7e8a2ebff62e5a410f8aa315d7708734f3a.zip
RustAndDust-d26eb7e8a2ebff62e5a410f8aa315d7708734f3a.tar.gz
Map4Orders: code reorder
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map4Orders.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
index e0e92eb..6893b2a 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
@@ -188,9 +188,9 @@ public abstract class Map4Orders extends Map3Animations
}
if (r && !replay) {
- order.cost = ((activatedUnits.size() > 0) ? ((activableUnits.size() > 0) ? 0 : 1) : 0);
order.actionId = actionId;
order.setActivable(activableUnits);
+ order.cost = ((activatedUnits.size() > 0) ? ((activableUnits.size() > 0) ? 0 : 1) : 0);
orders.add(order);
game.ctrl.orderProcessedCb();
}