Skip to content

Commit c9cff48

Browse files
committed
Merge pull request #493 from ln-zookeeper/master
Fix a small glitch in shield icon alpha range
2 parents fa57ea3 + 8d0624b commit c9cff48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/hud/hudshield.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ void HudGaugeShield::showShields(object *objp, int mode)
743743
continue;
744744
}
745745

746-
range = MAX(HUD_COLOR_ALPHA_MAX, HUD_color_alpha + 4);
746+
range = MAX(HUD_COLOR_ALPHA_MAX, HUD_color_alpha + objp->n_quadrants);
747747

748748
if ( !(sip->flags2 & SIF2_MODEL_POINT_SHIELDS) )
749749
hud_color_index = fl2i( (objp->shield_quadrant[Quadrant_xlate[i]] / max_shield) * range);

0 commit comments

Comments
 (0)