Queued formation movement fix

This commit is contained in:
Anuken 2023-09-25 13:37:11 -04:00
parent 95609a90be
commit 39dfdff53a
2 changed files with 4 additions and 2 deletions

View File

@ -273,7 +273,7 @@ public class CommandAI extends AIController{
attackTarget = null;
}
if(unit.isFlying()){
if(unit.isFlying() && move){
unit.lookAt(vecMovePos);
}else{
faceTarget();

View File

@ -277,7 +277,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
unit.lastCommanded = player.coloredName();
ai.group = null;
if(ai.commandQueue.size <= 0){
ai.group = null;
}
//remove when other player command
if(!headless && player != Vars.player){