summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/map
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-20 22:19:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-20 22:19:45 +0100
commit271949ec25a360eb3fc41c1c48b4977313a25879 (patch)
tree6a398bc01db6f4fd39a07ab5c6342e81592e60b3 /core/src/ch/asynk/rustanddust/game/map
parentf0f9d39f1d925dd564355b0cf67efe3109ea3b83 (diff)
downloadRustAndDust-271949ec25a360eb3fc41c1c48b4977313a25879.zip
RustAndDust-271949ec25a360eb3fc41c1c48b4977313a25879.tar.gz
Ctrl: processAction/Turn() -> action/turnDoneCb() + add orderProcessedCb()
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/map')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map4Orders.java4
1 files changed, 3 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 8cbaf89..e8ad751 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
@@ -160,8 +160,10 @@ public abstract class Map4Orders extends Map3Animations
break;
}
- if (r != -1)
+ if (r != -1) {
orders.add(cmd);
+ game.ctrl.orderProcessedCb();
+ }
return r;
}