Browse Source

engine: client: empty current map name in CL_ClearState

pull/2/head
Alibek Omarov 2 years ago
parent
commit
f42a174482
  1. 1
      engine/client/cl_main.c

1
engine/client/cl_main.c

@ -1358,6 +1358,7 @@ void CL_ClearState( void ) @@ -1358,6 +1358,7 @@ void CL_ClearState( void )
MSG_Clear( &cls.netchan.message );
memset( &clgame.fade, 0, sizeof( clgame.fade ));
memset( &clgame.shake, 0, sizeof( clgame.shake ));
clgame.mapname[0] = '\0';
Cvar_FullSet( "cl_background", "0", FCVAR_READ_ONLY );
cl.maxclients = 1; // allow to drawing player in menu
cl.mtime[0] = cl.mtime[1] = 1.0f; // because level starts from 1.0f second

Loading…
Cancel
Save