- fixed some misc code bugs (incorrect assignment) and cleaned up some compiler warnings

This commit is contained in:
Mark Vejvoda
2010-10-21 01:07:11 +00:00
parent f5f406dfb3
commit 93e56df3d6
3 changed files with 19 additions and 17 deletions

View File

@@ -464,6 +464,7 @@ bool ScriptManager::getAiEnabled(int factionIndex){
if(factionIndex<GameConstants::maxPlayers){
return playerModifiers[factionIndex].getAiEnabled();
}
return false;
}
void ScriptManager::disableConsume(int factionIndex){
@@ -484,9 +485,10 @@ void ScriptManager::enableConsume(int factionIndex){
bool ScriptManager::getConsumeEnabled(int factionIndex){
ScriptManager_STREFLOP_Wrapper streflopWrapper;
if(factionIndex<GameConstants::maxPlayers){
if(factionIndex < GameConstants::maxPlayers){
return playerModifiers[factionIndex].getConsumeEnabled();
}
return false;
}
int ScriptManager::registerCellTriggerEventForUnitToUnit(int sourceUnitId, int destUnitId) {