- more general bugfixes (not all upgrade values were being used in the code)

This commit is contained in:
SoftCoder
2014-12-21 21:07:24 -08:00
parent 3705d56057
commit f97f0ef852
6 changed files with 8 additions and 10 deletions

View File

@@ -8425,7 +8425,7 @@ void Renderer::renderHealthBar(Vec3f v, Unit *unit, float height, bool lineBorde
int barCount=0;
float hp=unit->getHpRatio();
float ep=-1.f;
if(unit->getType()->getMaxEp()!=0){
if(unit->getType()->getTotalMaxEp(unit->getTotalUpgrade()) !=0 ) {
ep=unit->getEpRatio();
numberOfBars++;
}