From d26eb7e8a2ebff62e5a410f8aa315d7708734f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 11 Apr 2016 16:25:06 +0200 Subject: Map4Orders: code reorder --- core/src/ch/asynk/rustanddust/game/map/Map4Orders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.1-2-g2b99