diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/UnitDock.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java index 40d118b..2cae15c 100644 --- a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java +++ b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java @@ -70,6 +70,8 @@ public class UnitDock extends Bg implements Animation public void setPosition(Position position, float y) { + if (this.position == position) + return; this.position = position; this.y = y; this.step = (position.isLeft() ? STEP : -STEP); |