- Vector<int> heroOffset(
- (align == LEFT) ? yOffset : width - hero->Sprite()->Width() - yOffset,
- yOffset);
- hero->Sprite()->Draw(screen, position + heroOffset, 0, hero->Health() > 0 ? 0 : 2);
+ hero->Sprite()->Draw(screen, position + HeroOffset(), 0, hero->Health() > 0 ? 0 : 2);
+}
+
+Vector<int> HeroTag::HeroOffset() const {
+ return Vector<int>(
+ (align == LEFT) ? res->normalFont->CharWidth() : 10 * res->normalFont->CharWidth(),
+ res->normalFont->CharWidth());