mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
don't try to use curses before things have been initialized
This commit is contained in:
parent
2732797574
commit
40dfde55a1
1 changed files with 12 additions and 5 deletions
|
@ -151,12 +151,19 @@ Con_Print (const char *txt)
|
|||
{
|
||||
chtype ch;
|
||||
|
||||
while ((ch = *txt++)) {
|
||||
ch = sys_char_map[ch] | attr_table[attr_map[ch]];
|
||||
waddch (output, ch);
|
||||
if (output) {
|
||||
while ((ch = *txt++)) {
|
||||
ch = sys_char_map[ch] | attr_table[attr_map[ch]];
|
||||
waddch (output, ch);
|
||||
}
|
||||
touchwin (stdscr);
|
||||
wrefresh (output);
|
||||
} else {
|
||||
while ((ch = *txt++)) {
|
||||
ch = sys_char_map[ch];
|
||||
putchar (ch);
|
||||
}
|
||||
}
|
||||
touchwin (stdscr);
|
||||
wrefresh (output);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue