mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Queued formation movement fix
This commit is contained in:
parent
95609a90be
commit
39dfdff53a
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||||
ai.group = null;
|
if(ai.commandQueue.size <= 0){
|
||||||
|
ai.group = null;
|
||||||
|
}
|
||||||
|
|
||||||
//remove when other player command
|
//remove when other player command
|
||||||
if(!headless && player != Vars.player){
|
if(!headless && player != Vars.player){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue