mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-21 01:37:13 +07:00
Unit command tweaks
This commit is contained in:
parent
8b2d4d8f3e
commit
9c86433047
@ -709,6 +709,13 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
commandMode = false;
|
commandMode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//validate commanding units
|
||||||
|
selectedUnits.removeAll(u -> !u.isCommandable() || !u.isValid());
|
||||||
|
|
||||||
|
if(!commandMode){
|
||||||
|
selectedUnits.clear();
|
||||||
|
}
|
||||||
|
|
||||||
//zoom camera
|
//zoom camera
|
||||||
if(!locked && Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (Core.input.keyDown(Binding.diagonal_placement) || ((!player.isBuilder() || !isPlacing() || !block.rotate) && selectPlans.isEmpty()))){
|
if(!locked && Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (Core.input.keyDown(Binding.diagonal_placement) || ((!player.isBuilder() || !isPlacing() || !block.rotate) && selectPlans.isEmpty()))){
|
||||||
renderer.scaleCamera(Core.input.axisTap(Binding.zoom));
|
renderer.scaleCamera(Core.input.axisTap(Binding.zoom));
|
||||||
|
Loading…
Reference in New Issue
Block a user