From 72b7a39be0762a9c604781404f047e2a0653f5f2 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 16 Jun 2003 03:02:08 +0000 Subject: * Exchanged Dragoon and Hydra to better fit the models * Adjusted relavant attributes * Disabled bank * Credits now non-volatile * In stages where the advanced builder is allowed it is now available from the egg --- src/ui/ui_main.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'src/ui') diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 2bfe2b18..8f20effd 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -3226,7 +3226,7 @@ static void UI_StartSinglePlayer() { UI_GetCurrentAlienStage =============== */ -static stage_t UI_GetCurrentAlienStage( ) +static stage_t UI_GetCurrentAlienStage( void ) { char buffer[ MAX_TOKEN_CHARS ]; stage_t stage, dummy; @@ -3242,7 +3242,7 @@ static stage_t UI_GetCurrentAlienStage( ) UI_GetCurrentHumanStage =============== */ -static stage_t UI_GetCurrentHumanStage( ) +static stage_t UI_GetCurrentHumanStage( void ) { char buffer[ MAX_TOKEN_CHARS ]; stage_t stage, dummy; @@ -3258,7 +3258,7 @@ static stage_t UI_GetCurrentHumanStage( ) UI_LoadTremTeams =============== */ -static void UI_LoadTremTeams( ) +static void UI_LoadTremTeams( void ) { uiInfo.tremTeamCount = 3; uiInfo.tremTeamList[ 0 ].text = String_Alloc( "Aliens" ); @@ -3279,16 +3279,23 @@ static void UI_LoadTremTeams( ) UI_LoadTremAlienClasses =============== */ -static void UI_LoadTremAlienClasses( ) +static void UI_LoadTremAlienClasses( void ) { + pClass_t bClass; + uiInfo.tremAlienClassCount = 2; + if( BG_FindStagesForClass( PCL_A_B_LEV1, UI_GetCurrentAlienStage( ) ) ) + bClass = PCL_A_B_LEV1; + else + bClass = PCL_A_B_BASE; + uiInfo.tremAlienClassList[ 0 ].text = - String_Alloc( BG_FindHumanNameForClassNum( PCL_A_B_BASE ) ); + String_Alloc( BG_FindHumanNameForClassNum( bClass ) ); uiInfo.tremAlienClassList[ 0 ].cmd = - String_Alloc( va( "cmd class %s", BG_FindNameForClassNum( PCL_A_B_BASE ) ) ); + String_Alloc( va( "cmd class %s", BG_FindNameForClassNum( bClass ) ) ); uiInfo.tremAlienClassList[ 0 ].infopane = - UI_FindInfoPaneByName( va( "%sclass", BG_FindNameForClassNum( PCL_A_B_BASE ) ) ); + UI_FindInfoPaneByName( va( "%sclass", BG_FindNameForClassNum( bClass ) ) ); uiInfo.tremAlienClassList[ 1 ].text = String_Alloc( BG_FindHumanNameForClassNum( PCL_A_O_BASE ) ); @@ -3303,7 +3310,7 @@ static void UI_LoadTremAlienClasses( ) UI_LoadTremHumanItems =============== */ -static void UI_LoadTremHumanItems( ) +static void UI_LoadTremHumanItems( void ) { uiInfo.tremHumanItemCount = 2; -- cgit