mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 21:10:53 +07:00
Fixed #9763
This commit is contained in:
parent
bc2f344c52
commit
4c4476ae95
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user