mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
- bugfix of selection circle and healthbar ratio value
This commit is contained in:
parent
ceca2fc5aa
commit
e27c44bb8f
@ -5472,14 +5472,11 @@ void Renderer::renderSelectionEffects(int healthbarMode) {
|
||||
}
|
||||
bool healthbarsVisible=((finalHealthbarMode&hbvAlways)||(finalHealthbarMode&hbvSelected)||(finalHealthbarMode&hbvIfNeeded));
|
||||
float selectionCircleThickness=0.2f;
|
||||
float hpRatio;
|
||||
float hpRatio=unit->getHpRatio();
|
||||
if(healthbarsVisible) {
|
||||
hpRatio=unit->getHpRatio();
|
||||
//hpRatio=unit->getHpRatio();
|
||||
selectionCircleThickness=0.05f;
|
||||
//hpRatio=1.0f;
|
||||
}
|
||||
else {
|
||||
hpRatio=0.0f;
|
||||
hpRatio=1.0f;
|
||||
}
|
||||
|
||||
if(world->getThisFactionIndex() == unit->getFactionIndex()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user