Misc bugfixes
This commit is contained in:
@@ -592,6 +592,10 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
logicCutsceneZoom = -1f;
|
||||
}
|
||||
|
||||
if(commandBuild != null && !commandBuild.isValid()){
|
||||
commandBuild = null;
|
||||
}
|
||||
|
||||
if(!commandMode){
|
||||
commandRect = false;
|
||||
}
|
||||
|
||||
@@ -715,6 +715,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
selectedUnits.removeAll(u -> !u.isCommandable() || !u.isValid());
|
||||
|
||||
if(!commandMode){
|
||||
commandBuild = null;
|
||||
selectedUnits.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user