summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-15 16:46:47 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-15 16:46:47 +0100
commit7463f1416738fae157a4235deed3babea71751a5 (patch)
tree842ad93b72dfc8a292acbcf067d25e5a861947f3 /core
parent85735eec37cdc0c2a66cfd458fcc47b0db069155 (diff)
downloadRustAndDust-7463f1416738fae157a4235deed3babea71751a5.zip
RustAndDust-7463f1416738fae157a4235deed3babea71751a5.tar.gz
Ctrl: move setState(battle.getState(player)); into startPlayerTurn()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index cba0e5b..cc6f801 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -74,7 +74,6 @@ public class Ctrl implements Disposable
hud.notify(battle.toString(), 2, Position.MIDDLE_CENTER, false);
startPlayerTurn();
- setState(battle.getState(player));
}
@Override
@@ -116,6 +115,7 @@ public class Ctrl implements Disposable
player.turnStart();
hud.update();
hud.notify(player.getName() + "'s turn", 2, Position.MIDDLE_CENTER, true);
+ setState(battle.getState(player));
}
private void endPlayerTurn()