Skip to content

Commit e243085

Browse files
Vladislav4KZa1batross
authored andcommitted
hud: move spectator GUI in draw order to prevent chat overlap
1 parent 6d4067c commit e243085

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cl_dll/hud.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@ void CHud :: Init( void )
358358
m_SniperScope.Init();
359359
m_NVG.Init();
360360

361-
// Spectator GUI is not need in singleplayer czeror
362-
if( GetGameType() != GAME_CZERODS )
363-
m_SpectatorGui.Init();
364-
365361
// Game HUD things
366362
m_Ammo.Init();
367363
m_Health.Init();
@@ -389,6 +385,11 @@ void CHud :: Init( void )
389385
// all things that have own background and must be drawn last
390386
m_ProgressBar.Init();
391387
m_Menu.Init();
388+
389+
// Spectator GUI is not need in singleplayer czeror
390+
if( GetGameType() != GAME_CZERODS )
391+
m_SpectatorGui.Init();
392+
392393
m_Scoreboard.Init();
393394

394395
GetClientVoice()->Init( &g_VoiceStatusHelper );

0 commit comments

Comments
 (0)