- bugfix selection circle and healthbar rendering
This commit is contained in:
parent
8e7dfbd43a
commit
126ed18589
|
@ -5467,14 +5467,16 @@ void Renderer::renderSelectionEffects(int healthbarMode) {
|
|||
int finalHealthbarMode = hbvUndefined;
|
||||
if(healthbarMode == hbvUndefined) {
|
||||
finalHealthbarMode = unit->getFaction()->getType()->getHealthbarVisible();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
finalHealthbarMode = healthbarMode;
|
||||
}
|
||||
bool healthbarsVisible=((finalHealthbarMode&hbvAlways)||(finalHealthbarMode&hbvSelected)||(finalHealthbarMode&hbvIfNeeded));
|
||||
bool healthbarsVisible =((finalHealthbarMode & hbvAlways) ||
|
||||
(finalHealthbarMode & hbvSelected) ||
|
||||
(finalHealthbarMode & hbvIfNeeded));
|
||||
float selectionCircleThickness = 0.2f;
|
||||
float hpRatio = unit->getHpRatio();
|
||||
if(healthbarsVisible) {
|
||||
//hpRatio=unit->getHpRatio();
|
||||
selectionCircleThickness = 0.05f;
|
||||
hpRatio = 1.0f;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue