mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 17:27:35 +07:00
Fixed #9763
This commit is contained in:
@ -258,8 +258,9 @@ public class OverlayRenderer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void checkApplySelection(Unit u){
|
public void checkApplySelection(Unit u){
|
||||||
if(unitFade > 0 && lastSelect == u){
|
if(unitFade > 0.001f && lastSelect == u){
|
||||||
Draw.mixcol(Pal.accent, unitFade);
|
Color prev = Draw.getMixColor();
|
||||||
|
Draw.mixcol(prev.a > 0.001f ? prev.lerp(Pal.accent, unitFade) : Pal.accent, Math.max(unitFade, prev.a));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user