]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
Faster speeds and tighter limits by default
[xonotic/darkplaces.git] / console.c
index dc3ca9c50156f2765cd13ac849209d1b50c90447..dd3137dd18aeaaaf0cf0ac06fee32603da44f532 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1325,6 +1325,9 @@ Con_DPrint
 */
 void Con_DPrint(const char *msg)
 {
+       if(developer.integer < 0) // at 0, we still add to the buffer but hide
+               return;
+
        Con_MaskPrint(CON_MASK_DEVELOPER, msg);
 }
 
@@ -1338,6 +1341,9 @@ void Con_DPrintf(const char *fmt, ...)
        va_list argptr;
        char msg[MAX_INPUTLINE];
 
+       if(developer.integer < 0) // at 0, we still add to the buffer but hide
+               return;
+
        va_start(argptr,fmt);
        dpvsnprintf(msg,sizeof(msg),fmt,argptr);
        va_end(argptr);
@@ -1768,7 +1774,7 @@ The typing input line at the bottom should only be drawn if typing is allowed
 void Con_DrawConsole (int lines)
 {
        int mask_must = 0;
-       int mask_mustnot = developer.integer ? 0 : CON_MASK_DEVELOPER;
+       int mask_mustnot = (developer.integer>0) ? 0 : CON_MASK_DEVELOPER;
        cachepic_t *conbackpic;
 
        if (lines <= 0)
@@ -2171,7 +2177,6 @@ int Nicks_CompleteCountPossible(char *line, int pos, char *s, qboolean isCon)
 {
        char name[128];
        int i, p;
-       int length;
        int match;
        int spos;
        int count = 0;
@@ -2195,7 +2200,6 @@ int Nicks_CompleteCountPossible(char *line, int pos, char *s, qboolean isCon)
                if(!name[0])
                        continue;
 
-               length = strlen(name);
                match = -1;
                spos = pos - 1; // no need for a minimum of characters :)
 
@@ -2753,7 +2757,7 @@ void Con_CompleteCommandLine (void)
        a = Cmd_CompleteAliasCountPossible(s);
        if (a)
        {
-               Con_Printf("\n%i possible aliases%s\n", a, (a > 1) ? "s: " : ":");
+               Con_Printf("\n%i possible alias%s\n", a, (a > 1) ? "es: " : ":");
                Cmd_CompleteAliasPrint(s);
        }
        n = Nicks_CompleteCountPossible(key_line, key_linepos, s, true);