bugfix to handle food decrements properly for humans

This commit is contained in:
Mark Vejvoda
2010-06-03 20:17:03 +00:00
parent 757906b226
commit 16f28d455b

View File

@@ -315,7 +315,7 @@ void Faction::applyCostsOnInterval(){
}
//decrement consumables
if((getCpuControl() == true) ||
if((getCpuControl() == false) ||
(getCpuControl() == true && scriptManager->getPlayerModifiers(this->thisFaction)->getAiEnabled() == false))
{
for(int j=0; j<getUnitCount(); ++j){