From e5ff755f1f899d260c405085167c3838d062ca67 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sun, 8 Jun 2003 01:33:27 +0000 Subject: [PATCH] fix non-console build --- ChangeLog | 2 ++ main/console.c | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 19fe306a..092aef31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ 2003-06-07 Bradley Bell + * main/console.c: fix non-console build + * main/gamesave.c: comments * main/bm.c: remove redundant break diff --git a/main/console.c b/main/console.c index d2da003c..fa02c897 100644 --- a/main/console.c +++ b/main/console.c @@ -1,4 +1,4 @@ -/* $Id: console.c,v 1.14 2003-06-06 19:04:27 btb Exp $ */ +/* $Id: console.c,v 1.15 2003-06-08 01:33:27 btb Exp $ */ /* * * FIXME: put description here @@ -58,7 +58,6 @@ static int con_initialized; ConsoleInformation *Console; void con_parse(ConsoleInformation *console, char *command); -#endif /* ====== @@ -71,6 +70,8 @@ void con_free(void) CON_Free(Console); con_initialized = 0; } +#endif + /* ====== * con_init - Initialise the console. @@ -118,17 +119,20 @@ void con_init_real(void) atexit(con_free); } +#endif + void con_resize(void) { +#ifdef CONSOLE if (!con_initialized) con_init_real(); CON_Font(Console, SMALL_FONT, gr_getcolor(63, 63, 63), -1); CON_Resize(Console, 0, 0, SWIDTH, SHEIGHT / 2); con_background(CON_BG); -} #endif +} /* ====== * con_printf - Print a message to the console. @@ -178,9 +182,13 @@ void con_update(void) } -int con_events(int key) +int con_events(int key) { +#ifdef CONSOLE return CON_Events(key); +#else + return key; +#endif } -- 2.39.2