summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-09 23:28:01 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-09 23:28:01 +0100
commit4073666fdb016572b58d6dbdbd91879ed7abed0e (patch)
tree01f27a653c46bb4525cb22e055dce1e3af747a40 /core/src/ch
parent099c7bcbbd7f00e8d32917c552ee9e3a1e6125ff (diff)
downloadRustAndDust-4073666fdb016572b58d6dbdbd91879ed7abed0e.zip
RustAndDust-4073666fdb016572b58d6dbdbd91879ed7abed0e.tar.gz
UnitDock: try to pervent erratic bouncing
Diffstat (limited to 'core/src/ch')
-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();