fixed minor bug where pressing ctl select a new unit would de-select

units that are already selected
This commit is contained in:
Pan 2021-04-17 23:27:14 +12:00
parent 65dfcc967e
commit d44644c2a6

View File

@ -355,7 +355,6 @@ public class playerCommander {
if(isSelectingUnit){ if(isSelectingUnit){
deSelectAll();
isSelectingUnit = false; isSelectingUnit = false;
int width = Math.abs(endX - startX); int width = Math.abs(endX - startX);
int height = Math.abs(endY - startY); int height = Math.abs(endY - startY);
@ -734,6 +733,8 @@ public class playerCommander {
doubleClicked = false; doubleClicked = false;
doubleClickCountDown = 0; doubleClickCountDown = 0;
} }
}else {
deSelectAll();
} }
} }