From dca9be87a196b1933b37f79838afa9e9adc68019 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 8 Jun 2015 14:44:02 +0200 Subject: remove remnants of UI_OLD_API_VERSION --- src/client/cl_ui.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index f122067f..dad0156a 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -1058,8 +1058,6 @@ void CL_ShutdownUI( void ) { CL_InitUI ==================== */ -#define UI_OLD_API_VERSION 4 - void CL_InitUI( void ) { int v; vmInterpret_t interpret; @@ -1082,11 +1080,7 @@ void CL_InitUI( void ) { // sanity check v = VM_Call( uivm, UI_GETAPIVERSION ); - if (v == UI_OLD_API_VERSION) { - // init for this gamestate - VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE)); - } - else if (v != UI_API_VERSION) { + if ( v != UI_API_VERSION ) { // Free uivm now, so UI_SHUTDOWN doesn't get called later. VM_Free( uivm ); uivm = NULL; @@ -1094,13 +1088,12 @@ void CL_InitUI( void ) { Com_Error( ERR_DROP, "User Interface is version %d, expected %d", v, UI_API_VERSION ); cls.uiStarted = qfalse; } - else { - // init for this gamestate - VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE) ); - // show where the ui folder was loaded from - Cmd_ExecuteString( "which ui/\n" ); - } + // init for this gamestate + VM_Call( uivm, UI_INIT, ( clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE ) ); + + // show where the ui folder was loaded from + Cmd_ExecuteString( "which ui/\n" ); clc.newsString[ 0 ] = '\0'; } -- cgit