Fixed not being able to pan with invalid recipe selected
This commit is contained in:
@@ -107,7 +107,7 @@ project(":core") {
|
|||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
boolean comp = System.properties["release"] == null || System.properties["release"].equals("false")
|
boolean comp = false
|
||||||
|
|
||||||
if(!comp){
|
if(!comp){
|
||||||
println("NOTICE: Compiling release build.")
|
println("NOTICE: Compiling release build.")
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#Autogenerated file. Do not modify.
|
#Autogenerated file. Do not modify.
|
||||||
#Mon Apr 16 21:11:17 EDT 2018
|
#Sat Apr 21 01:15:29 EDT 2018
|
||||||
version=release
|
version=release
|
||||||
androidBuildCode=519
|
androidBuildCode=523
|
||||||
name=Mindustry
|
name=Mindustry
|
||||||
code=3.5
|
code=3.5
|
||||||
build=custom build
|
build=custom build
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class GestureHandler extends GestureAdapter{
|
|||||||
if(control.showCursor() && !Inputs.keyDown("select")) return false;
|
if(control.showCursor() && !Inputs.keyDown("select")) return false;
|
||||||
|
|
||||||
if(!control.showCursor() && !(control.input().recipe != null
|
if(!control.showCursor() && !(control.input().recipe != null
|
||||||
&& control.input().placeMode.lockCamera) &&
|
&& control.input().placeMode.lockCamera && state.inventory.hasItems(control.input().recipe.requirements)) &&
|
||||||
!(control.input().recipe == null && control.input().breakMode.lockCamera)){
|
!(control.input().recipe == null && control.input().breakMode.lockCamera)){
|
||||||
float dx = deltaX*Core.camera.zoom/Core.cameraScale, dy = deltaY*Core.camera.zoom/Core.cameraScale;
|
float dx = deltaX*Core.camera.zoom/Core.cameraScale, dy = deltaY*Core.camera.zoom/Core.cameraScale;
|
||||||
player.x -= dx;
|
player.x -= dx;
|
||||||
|
|||||||
Reference in New Issue
Block a user