Skip to content

Commit 50f4173

Browse files
committed
Health logic tweaks
1 parent c164b98 commit 50f4173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Entities/Actor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ void Actor::Update()
15401540
////////////////////////////////
15411541
// Death logic
15421542

1543-
if (m_Status != DYING && m_Status != DEAD && std::round(m_Health) <= 0) {
1543+
if (m_Status != DYING && m_Status != DEAD && m_Health <= 0) {
15441544
if (m_DeathSound) { m_DeathSound->Play(m_Pos); }
15451545
m_Controller.SetDisabled(true);
15461546
DropAllInventory();
@@ -1803,7 +1803,7 @@ void Actor::DrawHUD(BITMAP *pTargetBitmap, const Vector &targetPos, int whichScr
18031803
pSymbolFont->DrawAligned(&bitmapInt, drawPos.m_X - 11, drawPos.m_Y + m_HUDStack, str, GUIFont::Left);
18041804
}
18051805
*/
1806-
std::snprintf(str, sizeof(str), "%.0f", m_Health);
1806+
std::snprintf(str, sizeof(str), "%.0f", std::ceil(m_Health));
18071807
pSymbolFont->DrawAligned(&bitmapInt, drawPos.m_X - 0, drawPos.m_Y + m_HUDStack, str, GUIFont::Left);
18081808

18091809
m_HUDStack += -12;

0 commit comments

Comments
 (0)