summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-02 11:36:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-02 11:36:31 +0100
commit9d01663453179ebdeaaa5427af71d4d1fb867471 (patch)
tree03150a80b095aabf038aeaa22eb476132ee193d8 /core/src/ch/asynk/tankontank/game
parentb22f2b184e63acc86ef5d9ef49f9c1f0b5cdf693 (diff)
downloadRustAndDust-9d01663453179ebdeaaa5427af71d4d1fb867471.zip
RustAndDust-9d01663453179ebdeaaa5427af71d4d1fb867471.tar.gz
hud/Engagement: fix widget resizing on reroll
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Engagement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Engagement.java b/core/src/ch/asynk/tankontank/game/hud/Engagement.java
index ffbfa65..217c175 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Engagement.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Engagement.java
@@ -183,7 +183,7 @@ public class Engagement extends Patch implements Animation
y = rerollY;
state = State.ROLL2;
}
- setPosition(getX(), getY(), getWidth(), (y + d1Animation.getHeight() + VSPACING));
+ setPosition(getX(), getY(), getWidth(), (y + d1Animation.getHeight() + VSPACING - getY()));
d1Animation.setPosition(d1Animation.getX(), y);
d2Animation.setPosition(d2Animation.getX(), y);
}