Minor pathfinding tweaks

This commit is contained in:
Anuken
2022-02-10 16:30:20 -05:00
parent fc8eac4048
commit 026e7501c1
2 changed files with 12 additions and 3 deletions

View File

@@ -280,7 +280,7 @@ public class DesktopInput extends InputHandler{
}
//validate commanding units
selectedUnits.removeAll(u -> !u.isCommandable());
selectedUnits.removeAll(u -> !u.isCommandable() || !u.isValid());
if(!scene.hasMouse() && !locked){
if(Core.input.keyDown(Binding.control) && Core.input.keyTap(Binding.select)){