Remove accruePower(){return false;} function, which is no longer used.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9478 4a71c877-e1ca-e34f-864e-861f7616d084
master
Cyp 2010-01-24 19:33:14 +00:00 committed by Git SVN Gateway
parent 5d3cdc66dd
commit f1e0c95dd3
4 changed files with 0 additions and 14 deletions

View File

@ -313,12 +313,6 @@ void newGameInitPower(void)
} }
} }
/*accrue the power in the facilities that require it - returns true if use some power*/
BOOL accruePower(BASE_OBJECT *psObject)
{
return false;
}
STRUCTURE *getRExtractor(STRUCTURE *psStruct) STRUCTURE *getRExtractor(STRUCTURE *psStruct)
{ {
STRUCTURE *psCurr; STRUCTURE *psCurr;

View File

@ -88,9 +88,6 @@ void powerCalc(BOOL on);
/** Temp function to give all players some power when a new game has been loaded. */ /** Temp function to give all players some power when a new game has been loaded. */
void newGameInitPower(void); void newGameInitPower(void);
/** Accrue the power in the facilities that require it. */
extern BOOL accruePower(BASE_OBJECT *psObject);
/** Returns the next res. Ext. in the list from the one passed in. returns 1st one /** Returns the next res. Ext. in the list from the one passed in. returns 1st one
in list if passed in is NULL and NULL if there's none? in list if passed in is NULL and NULL if there's none?
*/ */

View File

@ -1990,9 +1990,6 @@ void cancelResearch(STRUCTURE *psBuilding)
// Initialise the research facility's subject // Initialise the research facility's subject
psResFac->psSubject = NULL; psResFac->psSubject = NULL;
//set the researched flag - only set the flag to cancelled if it got past the accruePower stage
//pPlayerRes->researched = CANCELLED_RESEARCH;
} }
} }

View File

@ -3006,8 +3006,6 @@ static void aiUpdateStructure(STRUCTURE *psStructure, bool mission)
return; return;
} }
accruePower((BASE_OBJECT *)psStructure);
/* Process the functionality according to type /* Process the functionality according to type
* determine the subject stats (for research or manufacture) * determine the subject stats (for research or manufacture)
* or base object (for repair) or update power levels for resourceExtractor * or base object (for repair) or update power levels for resourceExtractor