Skip to content

Commit

Permalink
radius renderer brainfart
Browse files Browse the repository at this point in the history
  • Loading branch information
BasedUser committed Jan 15, 2024
1 parent fb535a9 commit c118811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/game/Teams.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void eachEnemyCore(Team team, Cons<Building> ret){

public void eachRadiusCore(Team team, Cons<Building> ret){
for(TeamData data : active){
if(team.ignoresBuildRadius(data.team)){
if(!team.ignoresBuildRadius(data.team)){
for(Building tile : data.cores){
ret.get(tile);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/mindustry/graphics/OverlayRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void drawTop(){
float offset = (i == 0 ? -2f : 0f);
for(CoreEdge edge : cedges){
Team displayed = edge.displayed();
if(displayed != null){
if(displayed != null && !player.team().ignoresBuildRadius(displayed)){
Draw.color(i == 0 ? Color.darkGray : Tmp.c1.set(displayed.color).lerp(Pal.accent, Mathf.absin(Time.time, 10f, 0.2f)));
Lines.line(edge.x1, edge.y1 + offset, edge.x2, edge.y2 + offset);
}
Expand Down

0 comments on commit c118811

Please sign in to comment.