From 4d923e994df4ec992ae78427296ca8f1ae76d6f6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 15 Jun 2016 14:59:04 -0400 Subject: [PATCH] v0.4.0: fixed emoicons rendering in the top-left on the first frame --- .../shatteredpixeldungeon/effects/EmoIcon.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/effects/EmoIcon.java b/src/com/shatteredpixel/shatteredpixeldungeon/effects/EmoIcon.java index 5454703e6..ccf6c7393 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/effects/EmoIcon.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/effects/EmoIcon.java @@ -78,6 +78,9 @@ public class EmoIcon extends Image { origin.set( width / 2, height / 2 ); scale.set( Random.Float( 1, maxSize ) ); + + x = owner.x + owner.width - width / 2; + y = owner.y - height; } } @@ -94,6 +97,9 @@ public class EmoIcon extends Image { origin.set( 2.5f, height - 2.5f ); scale.set( Random.Float( 1, maxSize ) ); + + x = owner.x + owner.width - width / 2; + y = owner.y - height; } }