diff --git a/src/console.c b/src/console.c index 92c9dabc4..88fe25000 100644 --- a/src/console.c +++ b/src/console.c @@ -589,12 +589,18 @@ static void CON_ChangeHeight(void) // Handles Console moves in/out of screen (per frame) // -static void CON_MoveConsole(void) +void CON_MoveConsole(void) { static fixed_t fracmovement = 0; Lock_state(); + if (con_curlines == con_destlines) + { + Unlock_state(); + return; + } + // instant if (!cons_speed.value) { @@ -1587,8 +1593,7 @@ void CON_Drawer(void) } // console movement - if (con_curlines != con_destlines) - CON_MoveConsole(); + CON_MoveConsole(); if (con_curlines > 0) CON_DrawConsole(); diff --git a/src/console.h b/src/console.h index 4245f8d31..a16ef47b6 100644 --- a/src/console.h +++ b/src/console.h @@ -52,6 +52,7 @@ void CON_ClearHUD(void); // clear heads up messages void CON_Ticker(void); void CON_Drawer(void); +void CON_MoveConsole(void); void CONS_Error(const char *msg); // print out error msg, and wait a key // force console to move out diff --git a/src/d_main.c b/src/d_main.c index 37f761d28..974ccea07 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -875,9 +875,9 @@ void D_SRB2Loop(void) } else if (!dedicated) { - // always update console and hud - // otherwise it may take minutes to open it - CON_Drawer(); + // always update console movement + // otherwise it will takes literal ages to open + CON_MoveConsole(); } }