mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 05:29:51 +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
|
// wipe the client_t struct
|
||||||
if( !cls.changelevel && !cls.changedemo )
|
if( !cls.changelevel && !cls.changedemo )
|
||||||
CL_ClearState ();
|
CL_ClearState ();
|
||||||
|
|
||||||
|
// Re-init hud video, especially if we changed game directories
|
||||||
|
clgame.dllFuncs.pfnVidInit();
|
||||||
|
|
||||||
cls.state = ca_connected;
|
cls.state = ca_connected;
|
||||||
|
|
||||||
// parse protocol version number
|
// parse protocol version number
|
||||||
@ -907,9 +911,6 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy )
|
|||||||
if( clgame.maxModels > MAX_MODELS )
|
if( clgame.maxModels > MAX_MODELS )
|
||||||
Con_Printf( S_WARN "server model limit is above client model limit %i > %i\n", 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( ))
|
if( Con_FixedFont( ))
|
||||||
{
|
{
|
||||||
// seperate the printfs so the server message can have a color
|
// seperate the printfs so the server message can have a color
|
||||||
|
Loading…
Reference in New Issue
Block a user