]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
consistency cleanup of a (disabled) part of Invert_Simple
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index 6fe4a86f2bc125ef26537a79d06afb526a4b0ffd..f44a4681a5236221b5160ed540615805cc037ac0 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -161,7 +161,7 @@ void Key_Console (int key)
 {
        if (key == K_ENTER)
        {
-               Cbuf_AddText (key_lines[edit_line]+1);  // skip the >
+               Cbuf_AddText (key_lines[edit_line]+1);  // skip the ]
                Cbuf_AddText ("\n");
                Con_Printf ("%s\n",key_lines[edit_line]);
                edit_line = (edit_line + 1) & 31;
@@ -169,9 +169,12 @@ void Key_Console (int key)
                key_lines[edit_line][0] = ']';
                key_lines[edit_line][1] = 0;    // EvilTypeGuy: null terminate
                key_linepos = 1;
+               // force an update, because the command may take some time
                if (cls.state == ca_disconnected)
-                       SCR_UpdateScreen ();    // force an update, because the command
-                                               // may take some time
+               {
+                       CL_UpdateScreen ();
+                       CL_UpdateScreen ();
+               }
                return;
        }