Remove unused function & globals

This commit is contained in:
Asdow
2024-11-30 23:50:17 +02:00
parent de56f653ec
commit 4e8c5fa9ab
3 changed files with 0 additions and 38 deletions
-32
View File
@@ -423,9 +423,6 @@ BOOLEAN gRubberBandActive = FALSE;
BOOLEAN gfIgnoreOnSelectedGuy = FALSE;
BOOLEAN gfViewPortAdjustedForSouth = FALSE;
INT16 guiCreateGuyIndex = 0;
// Temp values for placing bad guys
INT16 guiCreateBadGuyIndex = 8;
// FLAGS
// These flags are set for a single frame execution and then are reset for the next iteration.
@@ -3304,35 +3301,6 @@ void HandleObjectHighlighting( )
}
void AdjustSoldierCreationStartValues( )
{
INT32 cnt;
SOLDIERTYPE *pSoldier;
cnt = gTacticalStatus.Team[ gbPlayerNum ].bFirstID;
guiCreateGuyIndex = (INT16)cnt;
for ( pSoldier = MercPtrs[ cnt ]; cnt <= gTacticalStatus.Team[ gbPlayerNum ].bLastID; pSoldier++, ++cnt )
{
if ( !pSoldier->bActive )
{
guiCreateGuyIndex = (INT16)cnt;
break;
}
}
cnt = gTacticalStatus.Team[ gbPlayerNum ].bLastID + 1;
guiCreateBadGuyIndex = (INT16)cnt;
for ( pSoldier = MercPtrs[ cnt ]; cnt <= gTacticalStatus.Team[ LAST_TEAM ].bLastID; pSoldier++, ++cnt )
{
if ( !pSoldier->bActive && cnt > gTacticalStatus.Team[ gbPlayerNum ].bLastID )
{
guiCreateBadGuyIndex = (INT16)cnt;
break;
}
}
}
BOOLEAN SelectedMercCanAffordAttack( )
{
-4
View File
@@ -292,9 +292,6 @@ void HandleObjectHighlighting( );
extern BOOLEAN gfUIForceReExamineCursorData;
extern INT16 guiCreateGuyIndex;
extern INT16 guiCreateBadGuyIndex;
// WANNE: Calculate the APs to turn around
INT16 APsToTurnAround(SOLDIERTYPE *pSoldier, INT32 sAdjustedGridNo);
@@ -315,7 +312,6 @@ void GetRTMousePositionInput( UINT32 *puiNewEvent );
void QueryRTLeftButton( UINT32 *puiNewEvent );
void QueryRTRightButton( UINT32 *puiNewEvent );
void AdjustSoldierCreationStartValues( );
BOOLEAN SelectedMercCanAffordAttack( );
BOOLEAN SelectedMercCanAffordMove( );
-2
View File
@@ -3294,7 +3294,6 @@ BOOLEAN LoadWorld(const STR8 puiFilename, FLOAT* pMajorMapVersion, UINT8* pMinor
if(gusSelectedSoldier->bActive == FALSE)
gusSelectedSoldier = NOBODY;
}
AdjustSoldierCreationStartValues();
RenderProgressBar(0, 60);
InvalidateWorldRedundency();
// SAVE FILENAME
@@ -3327,7 +3326,6 @@ BOOLEAN NewWorld( INT32 nMapRows, INT32 nMapCols )
UINT16 NewIndex;
INT32 cnt;
AdjustSoldierCreationStartValues( );
TrashWorld();