Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
13bf607031
  1. 7
      engine/client/cl_parse.c

7
engine/client/cl_parse.c

@ -857,6 +857,10 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy ) @@ -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 ) @@ -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

Loading…
Cancel
Save