summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-18 11:29:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-18 11:29:33 +0100
commite122d9cb24cc05d36df4aaf00f73b742f8108eb6 (patch)
tree1f09a25f72ab76b7984147969c91ad90b49e9bf5 /core/src/ch/asynk/tankontank/game
parent3cea5d4d0b1599b030e2e96ab30f80695b3e2d13 (diff)
downloadRustAndDust-e122d9cb24cc05d36df4aaf00f73b742f8108eb6.zip
RustAndDust-e122d9cb24cc05d36df4aaf00f73b742f8108eb6.tar.gz
UnitDock: must recompute to on translate()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/UnitDock.java1
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);