Fixed #8732
This commit is contained in:
@@ -7,7 +7,6 @@ import arc.math.*;
|
|||||||
import arc.math.geom.*;
|
import arc.math.geom.*;
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import mindustry.content.*;
|
|
||||||
import mindustry.core.*;
|
import mindustry.core.*;
|
||||||
import mindustry.game.EventType.*;
|
import mindustry.game.EventType.*;
|
||||||
import mindustry.game.*;
|
import mindustry.game.*;
|
||||||
@@ -286,9 +285,6 @@ public class ControlPathfinder{
|
|||||||
float angleToDest = unit.angleTo(tile);
|
float angleToDest = unit.angleTo(tile);
|
||||||
//force recalculate when the unit moves backwards
|
//force recalculate when the unit moves backwards
|
||||||
if(Angles.angleDist(angleToNext, angleToDest) > 80f && !unit.within(tile, 1f)){
|
if(Angles.angleDist(angleToNext, angleToDest) > 80f && !unit.within(tile, 1f)){
|
||||||
if(showDebug){
|
|
||||||
Fx.placeBlock.at(unit, 1f);
|
|
||||||
}
|
|
||||||
req.forceRecalculate();
|
req.forceRecalculate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
|
|
||||||
//rotate button
|
//rotate button
|
||||||
table.button(Icon.right, Styles.clearNoneTogglei, () -> {
|
table.button(Icon.right, Styles.clearNoneTogglei, () -> {
|
||||||
if(block != null && block.rotate && block.quickRotate){
|
if(block != null && block.rotate){
|
||||||
rotation = Mathf.mod(rotation + 1, 4);
|
rotation = Mathf.mod(rotation + 1, 4);
|
||||||
}else{
|
}else{
|
||||||
schematicMode = !schematicMode;
|
schematicMode = !schematicMode;
|
||||||
|
|||||||
Reference in New Issue
Block a user