- bugfix for ep regen being done twice per tick

This commit is contained in:
Mark Vejvoda 2011-10-12 02:46:31 +00:00
parent df22657b54
commit e25e925ff0
1 changed files with 5 additions and 5 deletions

View File

@ -2066,11 +2066,11 @@ void Unit::tick() {
checkItemInVault(&this->ep,this->ep); checkItemInVault(&this->ep,this->ep);
//regenerate ep //regenerate ep
ep += type->getEpRegeneration(); // ep += type->getEpRegeneration();
if(ep > type->getTotalMaxEp(&totalUpgrade)){ // if(ep > type->getTotalMaxEp(&totalUpgrade)){
ep = type->getTotalMaxEp(&totalUpgrade); // ep = type->getTotalMaxEp(&totalUpgrade);
} // }
addItemToVault(&this->ep,this->ep); // addItemToVault(&this->ep,this->ep);
//regenerate ep upgrade / or boost //regenerate ep upgrade / or boost
checkItemInVault(&this->ep,this->ep); checkItemInVault(&this->ep,this->ep);