diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 23:28:01 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 23:28:01 +0100 |
commit | 4073666fdb016572b58d6dbdbd91879ed7abed0e (patch) | |
tree | 01f27a653c46bb4525cb22e055dce1e3af747a40 /core | |
parent | 099c7bcbbd7f00e8d32917c552ee9e3a1e6125ff (diff) | |
download | RustAndDust-4073666fdb016572b58d6dbdbd91879ed7abed0e.zip RustAndDust-4073666fdb016572b58d6dbdbd91879ed7abed0e.tar.gz |
UnitDock: try to pervent erratic bouncing
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/UnitDock.java | 2 |
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(); |