Browse Source

engine: client: put internal vgui shutdown AFTER HUD_Shutdown, to simulate default, external behavior

pull/2/head
Alibek Omarov 2 years ago
parent
commit
c2a24fbbce
  1. 6
      engine/client/cl_game.c

6
engine/client/cl_game.c

@ -3898,9 +3898,6 @@ void CL_UnloadProgs( void ) @@ -3898,9 +3898,6 @@ void CL_UnloadProgs( void )
{
if( !clgame.hInstance ) return;
if( GI->internal_vgui_support )
VGui_Shutdown();
CL_FreeEdicts();
CL_FreeTempEnts();
CL_FreeViewBeams();
@ -3912,6 +3909,9 @@ void CL_UnloadProgs( void ) @@ -3912,6 +3909,9 @@ void CL_UnloadProgs( void )
if( Q_stricmp( GI->gamefolder, "hlfx" ) || GI->version != 0.5f )
clgame.dllFuncs.pfnShutdown();
if( GI->internal_vgui_support )
VGui_Shutdown();
Cvar_FullSet( "cl_background", "0", FCVAR_READ_ONLY );
Cvar_FullSet( "host_clientloaded", "0", FCVAR_READ_ONLY );

Loading…
Cancel
Save