diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-06 22:52:28 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-06 22:52:28 +0200 |
commit | 2aa606943b53efebe1d0860e26df8ce0923c6cac (patch) | |
tree | 7a2b23866a5eb8ed9432209529740127d079d7d5 /core | |
parent | 94d82ecbbce9b9e21bba19e42094a268713a5567 (diff) | |
download | RustAndDust-2aa606943b53efebe1d0860e26df8ce0923c6cac.zip RustAndDust-2aa606943b53efebe1d0860e26df8ce0923c6cac.tar.gz |
GameStateCommon: null pawn on setHex() to never be out of sync
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/GameStateCommon.java | 1 |
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() |