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

engine: client: call VidInit early in svc_serverdata parsing, GoldSrc compatibility

This commit is contained in:
Alibek Omarov 2023-02-11 06:43:34 +03:00
parent 3cfdb1213b
commit 13bf607031

View File

@ -857,6 +857,10 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy )
// wipe the client_t struct
if( !cls.changelevel && !cls.changedemo )
CL_ClearState ();
// Re-init hud video, especially if we changed game directories
clgame.dllFuncs.pfnVidInit();
cls.state = ca_connected;
// parse protocol version number
@ -907,9 +911,6 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy )
if( clgame.maxModels > MAX_MODELS )
Con_Printf( S_WARN "server model limit is above client model limit %i > %i\n", clgame.maxModels, MAX_MODELS );
// Re-init hud video, especially if we changed game directories
clgame.dllFuncs.pfnVidInit();
if( Con_FixedFont( ))
{
// seperate the printfs so the server message can have a color