summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-19 11:20:22 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-19 11:20:22 +0100
commitce2ec7068686b61345b7bbac28adcce8ca3f1f41 (patch)
tree6494242d8eb29d582a4af3713a34c163b704b359 /core/src/ch/asynk
parent1366525b65aa5375534c79c6c6ab053fc7b60b9b (diff)
downloadRustAndDust-ce2ec7068686b61345b7bbac28adcce8ca3f1f41.zip
RustAndDust-ce2ec7068686b61345b7bbac28adcce8ca3f1f41.tar.gz
Player: reset on turn END not START
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Player.java7
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()