From 4073666fdb016572b58d6dbdbd91879ed7abed0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 23:28:01 +0100 Subject: UnitDock: try to pervent erratic bouncing --- core/src/ch/asynk/rustanddust/game/hud/UnitDock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java index fe73e27..8150cb1 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java +++ b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java @@ -220,7 +220,7 @@ public class UnitDock extends Bg implements Animation if (!visible) return; float top = scaledRect.y + scaledRect.height; - if (top != y) { + if ((int)top != (int)y) { if (top < y) { this.dy += Math.min(BOUNCE_SPEED, (y - top)); compute(); -- cgit v1.1-2-g2b99