summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/UnitDock.java2
1 files changed, 1 insertions, 1 deletions
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();