summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-06 22:52:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-06 22:52:28 +0200
commit2aa606943b53efebe1d0860e26df8ce0923c6cac (patch)
tree7a2b23866a5eb8ed9432209529740127d079d7d5 /core/src
parent94d82ecbbce9b9e21bba19e42094a268713a5567 (diff)
downloadRustAndDust-2aa606943b53efebe1d0860e26df8ce0923c6cac.zip
RustAndDust-2aa606943b53efebe1d0860e26df8ce0923c6cac.tar.gz
GameStateCommon: null pawn on setHex() to never be out of sync
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateCommon.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
index eb45d51..524b28f 100644
--- a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
+++ b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
@@ -78,6 +78,7 @@ public abstract class GameStateCommon implements GameState
protected void setHex()
{
hex.set(downHex.x, downHex.y);
+ pawn = null;
}
protected boolean hexHasUnit()