Skip to content

Commit

Permalink
Update battery.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Jun 20, 2024
1 parent 146372b commit 9a09019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cl_dll/battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ int CHudBattery::Draw(float flTime)
rc.top += m_iHeight * ((float)(100 - (min(100, m_iBat))) * 0.01); // battery can go from 0 to 100 so * 0.01 goes from 0 to 1
#endif

cvar_t* sv_aura_regeneration = gEngfuncs.pfnGetCvarPointer("sv_aura_regeneration");
//cvar_t* sv_aura_regeneration = gEngfuncs.pfnGetCvarPointer("sv_aura_regeneration");


// DeanAMX: Flash the armour HUD on zero.

UnpackRGB(r, g, b, RGB_DEFAULT);
if (sv_aura_regeneration->value == 1)
if (gEngfuncs.pfnGetCvarPointer("sv_aura_regeneration")->value == 1)
{

if (m_iBat <= 0)
Expand Down

0 comments on commit 9a09019

Please sign in to comment.