mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-20 04:37:31 +07:00
Queued formation movement fix
This commit is contained in:
@ -273,7 +273,7 @@ public class CommandAI extends AIController{
|
|||||||
attackTarget = null;
|
attackTarget = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(unit.isFlying()){
|
if(unit.isFlying() && move){
|
||||||
unit.lookAt(vecMovePos);
|
unit.lookAt(vecMovePos);
|
||||||
}else{
|
}else{
|
||||||
faceTarget();
|
faceTarget();
|
||||||
|
@ -277,7 +277,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
unit.lastCommanded = player.coloredName();
|
unit.lastCommanded = player.coloredName();
|
||||||
|
if(ai.commandQueue.size <= 0){
|
||||||
ai.group = null;
|
ai.group = null;
|
||||||
|
}
|
||||||
|
|
||||||
//remove when other player command
|
//remove when other player command
|
||||||
if(!headless && player != Vars.player){
|
if(!headless && player != Vars.player){
|
||||||
|
Reference in New Issue
Block a user