From 40dfde55a1a94f93ca19dc0e4f31a6b3a88518d1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 19 Jul 2001 00:07:20 +0000 Subject: [PATCH] don't try to use curses before things have been initialized --- qw/source/sv_console.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/qw/source/sv_console.c b/qw/source/sv_console.c index 0ff6eddd4..4614f6ec7 100644 --- a/qw/source/sv_console.c +++ b/qw/source/sv_console.c @@ -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