diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 11:29:33 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 11:29:33 +0100 |
commit | e122d9cb24cc05d36df4aaf00f73b742f8108eb6 (patch) | |
tree | 1f09a25f72ab76b7984147969c91ad90b49e9bf5 /core/src/ch | |
parent | 3cea5d4d0b1599b030e2e96ab30f80695b3e2d13 (diff) | |
download | RustAndDust-e122d9cb24cc05d36df4aaf00f73b742f8108eb6.zip RustAndDust-e122d9cb24cc05d36df4aaf00f73b742f8108eb6.tar.gz |
UnitDock: must recompute to on translate()
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/UnitDock.java | 1 |
1 files changed, 1 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 87a9a8d..edf70d4 100644 --- a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java +++ b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java @@ -56,6 +56,7 @@ public class UnitDock extends Bg implements Animation super.translate(_dx, _dy); for (Unit unit : units) unit.translate(_dx, _dy); + to = position.getX(rect.width * SCALE); transform.idt(); transform.translate((rect.x + dx), (rect.y + rect.height), 0).scale(SCALE, SCALE, 0).translate(-rect.x, - (rect.y + rect.height), 0); point.set(rect.x, rect.y, 0).mul(transform); |