Skip to content

Commit

Permalink
Update RegenProjector.java (#8768)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uenhe authored Jun 28, 2023
1 parent f01df70 commit 8c7523b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/mindustry/world/blocks/defense/RegenProjector.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import arc.math.*;
import arc.struct.*;
import arc.util.*;
import mindustry.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.entities.units.*;
Expand Down Expand Up @@ -55,9 +54,11 @@ public void drawPlace(int x, int y, int rotation, boolean valid){

x *= tilesize;
y *= tilesize;
x += offset;
y += offset;

Drawf.dashSquare(baseColor, x, y, range * tilesize);
indexer.eachBlock(Vars.player.team(), Tmp.r1.setCentered(x, y, range * tilesize), b -> true, t -> {
indexer.eachBlock(player.team(), Tmp.r1.setCentered(x, y, range * tilesize), b -> true, t -> {
Drawf.selected(t, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f)));
});
}
Expand Down

0 comments on commit 8c7523b

Please sign in to comment.