diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-02 11:36:31 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-02 11:36:31 +0100 |
commit | 9d01663453179ebdeaaa5427af71d4d1fb867471 (patch) | |
tree | 03150a80b095aabf038aeaa22eb476132ee193d8 /core/src/ch | |
parent | b22f2b184e63acc86ef5d9ef49f9c1f0b5cdf693 (diff) | |
download | RustAndDust-9d01663453179ebdeaaa5427af71d4d1fb867471.zip RustAndDust-9d01663453179ebdeaaa5427af71d4d1fb867471.tar.gz |
hud/Engagement: fix widget resizing on reroll
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/Engagement.java | 2 |
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); } |