]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
Fix most Q3 & QL glow maps
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index 2f91c06c453c59907d1a75266ea5ea8c9d3656c8..deeb06674d67033b57a344e6ebdba320dc3025aa 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -743,7 +743,8 @@ Key_Console (int key, int unicode)
                                }
                                else if (*p == '\n' || *p == '\r' || *p == '\b')
                                        *p++ = ';';
-                               p++;
+                               else
+                                       p++;
                        }
 #else
                        strtok(cbd, "\n\r\b");
@@ -1626,6 +1627,7 @@ Key_Init (void)
        Cmd_AddCommand ("in_unbind", Key_In_Unbind_f, "removes command on the specified key in the selected bindmap");
        Cmd_AddCommand ("in_bindlist", Key_In_BindList_f, "bindlist: displays bound keys for all bindmaps, or the given bindmap");
        Cmd_AddCommand ("in_bindmap", Key_In_Bindmap_f, "selects active foreground and background (used only if a key is not bound in the foreground) bindmaps for typing");
+       Cmd_AddCommand ("in_releaseall", Key_ReleaseAll, "releases all currently pressed keys (debug command)");
 
        Cmd_AddCommand ("bind", Key_Bind_f, "binds a command to the specified key in bindmap 0");
        Cmd_AddCommand ("unbind", Key_Unbind_f, "removes a command on the specified key in bindmap 0");