- text console cleanups
- don't draw character 1 or 2 in text mode, it's used by graphical console to change colours - don't print anything if a null string is passed - don't draw the names of the models being loaded, and don't try to overwrite it with whitespace, unless you're in developer mode.
This commit is contained in:
parent
a5b442aca6
commit
1d554ce1f3
|
@ -287,7 +287,7 @@ void CL_PrepRefresh (void)
|
||||||
strcpy (name, cl.configstrings[CS_MODELS+i]);
|
strcpy (name, cl.configstrings[CS_MODELS+i]);
|
||||||
name[37] = 0; // never go beyond one line
|
name[37] = 0; // never go beyond one line
|
||||||
if (name[0] != '*')
|
if (name[0] != '*')
|
||||||
Com_Printf ("%s\r", name);
|
Com_DPrintf ("%s\r", name);
|
||||||
SCR_UpdateScreen ();
|
SCR_UpdateScreen ();
|
||||||
Sys_SendKeyEvents (); // pump message loop
|
Sys_SendKeyEvents (); // pump message loop
|
||||||
if (name[0] == '#')
|
if (name[0] == '#')
|
||||||
|
@ -309,7 +309,7 @@ void CL_PrepRefresh (void)
|
||||||
cl.model_clip[i] = NULL;
|
cl.model_clip[i] = NULL;
|
||||||
}
|
}
|
||||||
if (name[0] != '*')
|
if (name[0] != '*')
|
||||||
Com_Printf (" \r");
|
Com_DPrintf (" \r");
|
||||||
}
|
}
|
||||||
|
|
||||||
Com_Printf ("images\r");
|
Com_Printf ("images\r");
|
||||||
|
|
|
@ -112,6 +112,14 @@ void Sys_ConsoleOutput (char *string)
|
||||||
if (nostdout && nostdout->value)
|
if (nostdout && nostdout->value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!string)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (string[0] == 1 || string[0] == 2) {
|
||||||
|
/* coloured text on the graphical console, ignore it */
|
||||||
|
string++;
|
||||||
|
}
|
||||||
|
|
||||||
fputs(string, stdout);
|
fputs(string, stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue