This commit is contained in:
Anuken 2024-04-21 10:05:05 -04:00
parent bc2f344c52
commit 4c4476ae95

View File

@ -258,8 +258,9 @@ public class OverlayRenderer{
}
public void checkApplySelection(Unit u){
if(unitFade > 0 && lastSelect == u){
Draw.mixcol(Pal.accent, unitFade);
if(unitFade > 0.001f && lastSelect == u){
Color prev = Draw.getMixColor();
Draw.mixcol(prev.a > 0.001f ? prev.lerp(Pal.accent, unitFade) : Pal.accent, Math.max(unitFade, prev.a));
}
}