mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 18:07:09 +01:00
engine: client: put internal vgui shutdown AFTER HUD_Shutdown, to simulate default, external behavior
This commit is contained in:
parent
ae94a6aeba
commit
c2a24fbbce
@ -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 )
|
||||
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…
Reference in New Issue
Block a user