Fixed #9248
This commit is contained in:
@@ -405,8 +405,8 @@ public class CommandAI extends AIController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void commandPosition(Vec2 pos, boolean stopWhenInRange){
|
public void commandPosition(Vec2 pos, boolean stopWhenInRange){
|
||||||
targetPos = pos;
|
//this is an allocation, but it's relatively rarely called anyway, and outside mutations must be prevented
|
||||||
lastTargetPos = pos;
|
targetPos = lastTargetPos = pos.cpy();
|
||||||
attackTarget = null;
|
attackTarget = null;
|
||||||
pathId = Vars.controlPath.nextTargetId();
|
pathId = Vars.controlPath.nextTargetId();
|
||||||
this.stopWhenInRange = stopWhenInRange;
|
this.stopWhenInRange = stopWhenInRange;
|
||||||
|
|||||||
Reference in New Issue
Block a user