summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-02-25 13:03:43 +0100
committerenneract <trem.redman@gmail.com>2014-02-25 13:03:43 +0100
commitdac3d3127fc94231bdde0c0822bb12de01e9e836 (patch)
tree17829bc1a1b0ddb2d49421c5ea0114b4c2eff436 /src/ui
parentcd9f8731a13a29d51a401f67ec2aa0b8962e01c8 (diff)
0.1.7
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_main.c35
1 files changed, 26 insertions, 9 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 6566d5e..ef53272 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -1690,7 +1690,7 @@ static void UI_DrawInfoPane( menuItem_t *item, rectDef_t *rect, float text_x, fl
break;
case TEAM_HUMANS:
- string = "Power";
+ string = "Mass";
break;
default:
@@ -2580,24 +2580,41 @@ static void UI_LoadHumanBuilds( void )
{
int i, j = 0;
stage_t stage;
+ static buildable_t list [ 14 ] =
+ {
+ BA_H_RTG,
+ BA_H_REACTOR,
+ BA_H_SPAWN,
+ BA_H_REFINERY,
+ BA_H_MGTURRET,
+ BA_H_ARMOURY,
+ BA_H_MEDISTAT,
+ BA_H_REPEATER,
+ BA_H_CAPBANK,
+ BA_H_DCC,
+ BA_H_TESLAGEN,
+ BA_H_CUBOID1,
+ BA_H_CUBOID2,
+ BA_H_CUBOID3
+ };
UI_ParseCarriageList( );
stage = UI_GetCurrentHumanStage( );
uiInfo.humanBuildCount = 0;
- for( i = BA_NONE + 1; i < BA_NUM_BUILDABLES; i++ )
+ for( i = 0; i < 14; i++ )
{
- if( BG_Buildable( i, NULL )->team == TEAM_HUMANS &&
- BG_Buildable( i, NULL )->buildWeapon & uiInfo.weapons &&
- BG_BuildableAllowedInStage( i, stage ) &&
- BG_BuildableIsAllowed( i ) )
+ if( BG_Buildable( list[ i ], NULL )->team == TEAM_HUMANS &&
+ BG_Buildable( list[ i ], NULL )->buildWeapon & uiInfo.weapons &&
+ BG_BuildableAllowedInStage( list[ i ], stage ) &&
+ BG_BuildableIsAllowed( list[ i ] ) )
{
- uiInfo.humanBuildList[ j ].text = BG_Buildable( i, NULL )->humanName;
+ uiInfo.humanBuildList[ j ].text = BG_Buildable( list[ i ], NULL )->humanName;
uiInfo.humanBuildList[ j ].cmd =
- String_Alloc( va( "cmd build %s\n", BG_Buildable( i, NULL )->name ) );
+ String_Alloc( va( "cmd build %s\n", BG_Buildable( list[ i ], NULL )->name ) );
uiInfo.humanBuildList[ j ].type = INFOTYPE_BUILDABLE;
- uiInfo.humanBuildList[ j ].v.buildable = i;
+ uiInfo.humanBuildList[ j ].v.buildable = list[ i ];
j++;