}
// hero
- HeroSprite()->Draw(screen, position + HeroOffset(), 0, battle->HeroAt(index).Health() > 0 ? 0 : 2);
+ HeroSprite()->DrawCenter(screen, position + HeroOffset(), 0, battle->HeroAt(index).Health() > 0 ? 0 : 2);
}
Vector<int> HeroTag::HeroOffset() const {
return Vector<int>(
- (index % 2) ? battle->Res().normalFont->CharWidth() : 10 * battle->Res().normalFont->CharWidth(),
- battle->Res().normalFont->CharWidth());
+ ((index % 2) ? battle->Res().normalFont->CharWidth() : 10 * battle->Res().normalFont->CharWidth()) + HeroSprite()->Width() / 2,
+ battle->Res().normalFont->CharWidth() + HeroSprite()->Height() / 2);
}
}