Fixed antialiasing

This commit is contained in:
Anuken
2020-03-30 12:00:08 -04:00
parent 084c90ba9f
commit 9081f3ff03
9 changed files with 593 additions and 589 deletions

View File

@@ -1,5 +1,6 @@
package mindustry.entities.units;
import arc.math.*;
import arc.math.geom.*;
import arc.util.*;
import mindustry.entities.*;
@@ -17,6 +18,10 @@ public class AIController implements UnitController{
protected Teamc target;
protected Interval timer = new Interval(4);
{
timer.reset(0, Mathf.random(40f));
}
protected void targetClosestAllyFlag(BlockFlag flag){
Tile target = Geometry.findClosest(unit.x(), unit.y(), indexer.getAllied(unit.team(), flag));
if(target != null) this.target = target.entity;