diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-19 11:20:22 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-19 11:20:22 +0100 |
commit | ce2ec7068686b61345b7bbac28adcce8ca3f1f41 (patch) | |
tree | 6494242d8eb29d582a4af3713a34c163b704b359 /core | |
parent | 1366525b65aa5375534c79c6c6ab053fc7b60b9b (diff) | |
download | RustAndDust-ce2ec7068686b61345b7bbac28adcce8ca3f1f41.zip RustAndDust-ce2ec7068686b61345b7bbac28adcce8ca3f1f41.tar.gz |
Player: reset on turn END not START
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Player.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java index e43e892..d5eba9b 100644 --- a/core/src/ch/asynk/tankontank/game/Player.java +++ b/core/src/ch/asynk/tankontank/game/Player.java @@ -164,15 +164,14 @@ public class Player turn += 1; else deploymentDone = (reinforcement.size() == 0); + for (Unit unit : units) + unit.reset(); } public void turnStart() { - if (isDeploymentDone()) { - for (Unit unit : units) - unit.reset(); + if (isDeploymentDone()) computeActionPoints(); - } } public int d6() |