remove select when other player command (#7522)

This commit is contained in:
WayZer
2022-10-03 17:50:25 -04:00
committed by GitHub
parent eb1192cdbe
commit d709000a5b
@@ -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);
}
}
}