This commit is contained in:
Anuken
2023-06-19 18:44:16 -04:00
parent c7181999b2
commit 6ba1cd3ef6
2 changed files with 1 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ import arc.math.*;
import arc.math.geom.*;
import arc.struct.*;
import arc.util.*;
import mindustry.content.*;
import mindustry.core.*;
import mindustry.game.EventType.*;
import mindustry.game.*;
@@ -286,9 +285,6 @@ public class ControlPathfinder{
float angleToDest = unit.angleTo(tile);
//force recalculate when the unit moves backwards
if(Angles.angleDist(angleToNext, angleToDest) > 80f && !unit.within(tile, 1f)){
if(showDebug){
Fx.placeBlock.at(unit, 1f);
}
req.forceRecalculate();
}
}

View File

@@ -201,7 +201,7 @@ public class MobileInput extends InputHandler implements GestureListener{
//rotate button
table.button(Icon.right, Styles.clearNoneTogglei, () -> {
if(block != null && block.rotate && block.quickRotate){
if(block != null && block.rotate){
rotation = Mathf.mod(rotation + 1, 4);
}else{
schematicMode = !schematicMode;