mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 18:06:44 +02:00
- more general bugfixes (not all upgrade values were being used in the code)
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user