Browse Source

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

pull/2/head
Alibek Omarov 3 years ago
parent
commit
5b387ba36a
  1. 6
      engine/client/cl_main.c
  2. 2
      engine/client/input.c

6
engine/client/cl_main.c

@ -2973,12 +2973,12 @@ Host_ClientBegin @@ -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();

2
engine/client/input.c

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

Loading…
Cancel
Save