diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java index 7489fd4..d858d7d 100644 --- a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java +++ b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java @@ -70,6 +70,8 @@ public class PlayerInfo implements Disposable, Drawable, Animation public void setPosition(Position position) { + if (this.position == position) + return; this.position = position; float width = (usFlag.getWidth() + turns.getWidth() + aps.getWidth() + (2 * PADDING)); |