From 5b387ba36a11813f522dee8f92a7f6c685e54824 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 6 Jun 2021 16:19:43 +0300 Subject: [PATCH] engine: client: move Cbuf_Execute out of Host_InputFrame, cbuf will be executed always at ClientBegin. Fixes #482 --- engine/client/cl_main.c | 6 +++--- engine/client/input.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index b6ec739b..f6b39230 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -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(); diff --git a/engine/client/input.c b/engine/client/input.c index 79d94ee3..47a17109 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -669,8 +669,6 @@ void Host_InputFrame( void ) } } - Cbuf_Execute (); - if( !in_mouseinitialized ) return;