diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 11:32:15 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 11:32:15 +0100 |
commit | a59576eeab882ad6fe059e1507dd37d8716a86d7 (patch) | |
tree | 7e5ac7999919d7b6f6c88e6f26943a879c0d5154 /core/src/ch/asynk/tankontank | |
parent | e122d9cb24cc05d36df4aaf00f73b742f8108eb6 (diff) | |
download | RustAndDust-a59576eeab882ad6fe059e1507dd37d8716a86d7.zip RustAndDust-a59576eeab882ad6fe059e1507dd37d8716a86d7.tar.gz |
UnitDock: set dx=0f in constructor and in setPosition() only
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/UnitDock.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java index edf70d4..40d118b 100644 --- a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java +++ b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java @@ -46,6 +46,7 @@ public class UnitDock extends Bg implements Animation this.scaledRect = new Rectangle(); this.selected = new Sprite(selected); this.visible = false; + this.dx = 0f; } @Override @@ -74,6 +75,7 @@ public class UnitDock extends Bg implements Animation this.step = (position.isLeft() ? STEP : -STEP); this.mvtDone = true; this.visible = false; + this.dx = 0f; } @Override @@ -143,7 +145,6 @@ public class UnitDock extends Bg implements Animation show = true; mvtDone = false; visible = true; - dx = 0f; } @Override |