From 010d4f87802d72f572702b2dd664b757982a9901 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 2 Aug 2003 23:25:50 +0000 Subject: * Fixed bug with blank upgrade menu when no upgrade possible * Fixed bug where credits weren't blanked between team changes * Flamer ejection point now a tag * Jetpack ejection point now a tag + jetpack flash --- src/ui/ui_main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui') diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 8f20effd..b01f62bc 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -4119,7 +4119,13 @@ static void UI_RunMenuScript(char **args) { trap_Cmd_ExecuteText( EXEC_APPEND, cmd ); } else if( Q_stricmp( name, "LoadAlienUpgrades" ) == 0 ) + { UI_LoadTremAlienUpgrades( ); + + //disallow the menu if it would be empty + if( uiInfo.tremAlienUpgradeCount <= 0 ) + Menus_CloseAll( ); + } else if( Q_stricmp( name, "UpgradeToNewClass" ) == 0 ) { if( cmd = uiInfo.tremAlienUpgradeList[ uiInfo.tremAlienUpgradeIndex ].cmd ) -- cgit