remove select when other player command (#7522)

This commit is contained in:
WayZer
2022-10-04 05:50:25 +08:00
committed by GitHub
parent eb1192cdbe
commit d709000a5b

View File

@@ -239,6 +239,11 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
ai.commandPosition(posTarget);
}
unit.lastCommanded = player.coloredName();
//remove when other player command
if(!headless && player != Vars.player){
control.input.selectedUnits.remove(unit);
}
}
}