fix for effects debug rendering

units with size>1  showed a too big effect range circle
This commit is contained in:
titiger 2014-11-24 22:14:09 +01:00
parent 88de5a7050
commit eae90a2198
1 changed files with 1 additions and 1 deletions

View File

@ -5526,7 +5526,7 @@ void Renderer::renderSelectionEffects(int healthbarMode) {
if(effect.skillType->isAttackBoostEnabled() == true) {
glColor4f(MAGENTA.x,MAGENTA.y,MAGENTA.z,MAGENTA.w);
renderSelectionCircle(currVec, unit->getType()->getSize(), effect.skillType->getAttackBoost()->radius);
renderSelectionCircle(currVec, 1, effect.skillType->getAttackBoost()->radius, .25f/effect.skillType->getAttackBoost()->radius);
for(unsigned int i = 0; i < effect.currentAttackBoostUnits.size(); ++i) {
// Remove attack boost upgrades from unit