Skip to content

Commit

Permalink
Change health HUD to use pain_directions hud icon name
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Jun 3, 2023
1 parent 66bfe94 commit 100bc65
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/game/client/ui/hud/health.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include "hud.h"

#define PAIN_NAME "sprites/%d_pain.spr"

int giDmgHeight, giDmgWidth;

struct DamageType
Expand Down Expand Up @@ -81,7 +79,7 @@ void CHudHealth::Reset()

bool CHudHealth::VidInit()
{
m_hSprite = 0;
m_hSprite = gHUD.GetSprite(gHUD.GetSpriteIndex("pain_directions"));

m_HUD_cross = gHUD.GetSpriteIndex("cross");

Expand Down Expand Up @@ -171,9 +169,6 @@ bool CHudHealth::Draw(float flTime)
if ((gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH) != 0 || 0 != gEngfuncs.IsSpectateOnly())
return true;

if (0 == m_hSprite)
m_hSprite = LoadSprite(PAIN_NAME);

// Has health changed? Flash the health #
if (0 != m_fFade)
{
Expand Down

0 comments on commit 100bc65

Please sign in to comment.