summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-16 13:23:29 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-16 13:23:29 +0100
commited4d60b0cb98b0b0442b9ca6a8817a95a88cd4fb (patch)
tree4fc19ffa26aeebe5dc1c1010259ed9597f048660
parent973f6ac754f80fe8a558ed6f15916c446359f3b3 (diff)
downloadRustAndDust-ed4d60b0cb98b0b0442b9ca6a8817a95a88cd4fb.zip
RustAndDust-ed4d60b0cb98b0b0442b9ca6a8817a95a88cd4fb.tar.gz
StateDeployment: update hud on unitEnter() or undo()
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateDeployment.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java
index 299fdfa..3be9201 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java
@@ -97,6 +97,7 @@ public class StateDeployment extends StateCommon
ctrl.player.revertUnitEntry(selectedUnit);
activeUnit = null;
selectedUnit = null;
+ ctrl.hud.update();
}
private void unitEnter(Unit unit)
@@ -108,6 +109,7 @@ public class StateDeployment extends StateCommon
deployedUnits.add(unit);
entryPoint.enable(Hex.AREA, false);
showRotation();
+ ctrl.hud.update();
}
private void showRotation()