Removed function cmdSelectSubDroids due to not being used on the code. Cleaned BOOL from cmddroid.h/cpp.

master
littlepig 2011-01-21 17:46:06 +00:00
parent ec90151d03
commit 44ebc96366
2 changed files with 5 additions and 23 deletions

View File

@ -40,10 +40,10 @@ extern UDWORD selectedPlayer;
DROID *apsCmdDesignator[MAX_PLAYERS];
// whether experience should be boosted due to a multi game
static BOOL bMultiExpBoost = false;
static bool bMultiExpBoost = false;
// Initialise the command droids
BOOL cmdDroidInit(void)
bool cmdDroidInit(void)
{
memset(apsCmdDesignator, 0, sizeof(DROID *)*MAX_PLAYERS);
@ -161,7 +161,7 @@ void cmdDroidMultiExpBoost(BOOL bDoit)
bMultiExpBoost = bDoit;
}
BOOL cmdGetDroidMultiExpBoost()
bool cmdGetDroidMultiExpBoost()
{
return bMultiExpBoost;
}
@ -219,18 +219,3 @@ unsigned int cmdGetCommanderLevel(const DROID* psDroid)
// Return the experience level of this commander
return getDroidLevel(psCommander);
}
// Selects all droids for a given commander
void cmdSelectSubDroids(DROID *psDroid)
{
DROID *psCurr;
for (psCurr = apsDroidLists[selectedPlayer]; psCurr; psCurr = psCurr->psNext)
{
if (hasCommander(psCurr)
&& psCurr->psGroup->psCommander == psDroid)
{
SelectDroid(psCurr);
}
}
}

View File

@ -28,7 +28,7 @@
#include "droiddef.h"
// Initialise the command droids
extern BOOL cmdDroidInit(void);
extern bool cmdDroidInit(void);
// ShutDown the command droids
extern void cmdDroidShutDown(void);
@ -66,13 +66,10 @@ extern unsigned int cmdGetCommanderLevel(const DROID* psDroid);
// returns true if a unit in question has is assigned to a commander
extern bool hasCommander(const DROID* psDroid);
// Select all droids assigned to the passed in command droids
extern void cmdSelectSubDroids(DROID *psDroid);
// note that commander experience should be increased
extern void cmdDroidMultiExpBoost(BOOL bDoit);
// check whether commander experience should be increased
extern BOOL cmdGetDroidMultiExpBoost(void);
extern bool cmdGetDroidMultiExpBoost(void);
#endif // __INCLUDED_SRC_CMDDROID_H__