engine: client: move Cbuf_Execute out of Host_InputFrame, cbuf will be executed always at ClientBegin. Fixes #482

This commit is contained in:
Alibek Omarov 2021-06-06 16:19:43 +03:00
parent d011dccaab
commit 5b387ba36a
2 changed files with 3 additions and 5 deletions

View File

@ -2973,12 +2973,12 @@ Host_ClientBegin
*/
void Host_ClientBegin( void )
{
// if client is not active, do nothing
if( !cls.initialized ) return;
// exec console commands
Cbuf_Execute ();
// if client is not active, do nothing
if( !cls.initialized ) return;
// finalize connection process if needs
CL_CheckClientState();

View File

@ -669,8 +669,6 @@ void Host_InputFrame( void )
}
}
Cbuf_Execute ();
if( !in_mouseinitialized )
return;