diff options
author | Tim Angus <tim@ngus.net> | 2003-08-02 23:25:50 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-08-02 23:25:50 +0000 |
commit | 010d4f87802d72f572702b2dd664b757982a9901 (patch) | |
tree | 03d1c6d6dba04ff2cabcba4368395c9551895efc /src/ui | |
parent | 75c3529af06e3879121c3111a15a1cda1fbfc7cd (diff) |
* 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
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 ) |