Skip to content

Commit

Permalink
Fix some HUDs not drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed Aug 2, 2024
1 parent 6e929f8 commit 9cebb46
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cl_dll/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int CBXTHud::Redraw(float flTime, int intermission)
for (CBXTHudBase* i : m_vecHudList)
{
if (i->m_iFlags & HUD_ALWAYSRENDER)
return 1; // see CBXTHud::RedrawAlwaysVisibleElements
continue; // see CBXTHud::RedrawAlwaysVisibleElements

if (!intermission)
{
Expand Down
2 changes: 1 addition & 1 deletion src/cl_dll/hud_jumpspeed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHudJumpspeed* g_lpJumpspeedHUD;
int CHudJumpspeed::Init()
{
g_lpJumpspeedHUD = this;
m_iFlags = HUD_ACTIVE;
m_iFlags |= HUD_ACTIVE;

hud_jumpspeed = CVAR_CREATE("sbxt_hud_jumpspeed", "0", 0);
hud_jumpspeed_below_cross = CVAR_CREATE("sbxt_hud_jumpspeed_below_cross", "0", 0);
Expand Down
2 changes: 1 addition & 1 deletion src/cl_dll/hud_origin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

int CHudOrigin::Init()
{
m_iFlags = HUD_ACTIVE;
m_iFlags |= HUD_ACTIVE;

hud_origin = CVAR_CREATE("sbxt_hud_origin", "0", 0);
hud_origin_anchor = CVAR_CREATE("sbxt_hud_origin_anchor", "1 0", 0);
Expand Down
2 changes: 1 addition & 1 deletion src/cl_dll/hud_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int __MsgFunc_BXTTimer(const char* pszName, int iSize, void* pbuf)
int CHudTimer::Init()
{
g_lpHUDTimer = this;
m_iFlags = HUD_ALWAYSRENDER;
m_iFlags |= HUD_ALWAYSRENDER;

hud_timer_serversync = CVAR_CREATE("sbxt_timer_serversync", "1", 0);
hud_timer_il_mode = CVAR_CREATE("sbxt_timer_il_mode", "0", 0);
Expand Down
2 changes: 1 addition & 1 deletion src/cl_dll/hud_viewangles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ float AngleNormalize(float angle)

int CHudViewangles::Init()
{
m_iFlags = HUD_ACTIVE;
m_iFlags |= HUD_ACTIVE;

hud_viewangles = CVAR_CREATE("sbxt_hud_viewangles", "0", 0);
hud_viewangles_anchor = CVAR_CREATE("sbxt_hud_viewangles_anchor", "1 0", 0);
Expand Down

0 comments on commit 9cebb46

Please sign in to comment.