diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-15 16:46:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-15 16:46:47 +0100 |
commit | 7463f1416738fae157a4235deed3babea71751a5 (patch) | |
tree | 842ad93b72dfc8a292acbcf067d25e5a861947f3 /core | |
parent | 85735eec37cdc0c2a66cfd458fcc47b0db069155 (diff) | |
download | RustAndDust-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.java | 2 |
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() |