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:
parent
3cfdb1213b
commit
13bf607031
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user