From d9e16591c7ac0d9de3a40d60ff7c701670af49cc Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 14 Sep 2005 04:56:20 +0000 Subject: [PATCH] don't need VM_UI defined. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1334 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/r_main.c | 4 ++-- engine/sw/sw_screen.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/sw/r_main.c b/engine/sw/r_main.c index 81f182c14..700e0d16e 100644 --- a/engine/sw/r_main.c +++ b/engine/sw/r_main.c @@ -322,9 +322,9 @@ void SWR_NewMap (void) R_WipeDecals(); R_InitSkyBox(); - +#ifdef VM_UI UI_Reset(); - +#endif TP_NewMap(); } diff --git a/engine/sw/sw_screen.c b/engine/sw/sw_screen.c index 84d8447e8..05430cd25 100644 --- a/engine/sw/sw_screen.c +++ b/engine/sw/sw_screen.c @@ -79,7 +79,11 @@ void SWSCR_UpdateScreen (void) if (!scr_initialized || !con_initialized) return; // not initialized yet +#ifdef VM_UI uimenu = UI_MenuState(); +#else + uimenu = 0; +#endif // // check for vid changes