v2.2.0: fixed MobTitle layout using non-scaled sprite width

This commit is contained in:
Evan Debenham
2023-10-13 12:16:44 -04:00
parent c49ad0fa12
commit 9f4ab7b164

View File

@@ -80,7 +80,7 @@ public class WndInfoMob extends WndTitledMessage {
extraBuffSpace += 8;
} while (extraBuffSpace <= 40 && !buffs.allBuffsVisible());
name.setPos(x + image.width + GAP,
name.setPos(x + image.width() + GAP,
image.height() > name.height() ? y +(image.height() - name.height()) / 2 : y);
health.setRect(image.width() + GAP, name.bottom() + GAP, w, health.height());