Mobile input tweak

This commit is contained in:
Anuken
2018-11-09 08:49:23 -05:00
parent 1d238c8315
commit a8cfc1ef7a

View File

@@ -430,7 +430,7 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public boolean touchDown(int screenX, int screenY, int pointer, int button){
if(state.is(State.menu)) return false;
if(state.is(State.menu) || player.isDead()) return false;
//get tile on cursor
Tile cursor = tileAt(screenX, screenY);
@@ -519,7 +519,7 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public boolean longPress(float x, float y){
if(state.is(State.menu) || mode == none) return false;
if(state.is(State.menu) || mode == none || player.isDead()) return false;
//get tile on cursor
Tile cursor = tileAt(x, y);
@@ -595,7 +595,7 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public void update(){
if(state.is(State.menu)){
if(state.is(State.menu) || player.isDead()){
selection.clear();
removals.clear();
mode = none;