2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-05 10:02:00 +01:00

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

This commit is contained in:
Alibek Omarov 2022-11-14 20:12:10 +03:00
parent ae94a6aeba
commit c2a24fbbce

View File

@ -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 );