diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-27 14:35:19 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-27 14:35:19 +0100 |
commit | daeebba49e1744603776ea1a732f17b606df3898 (patch) | |
tree | 28d850fe6d5d9c8981339946a5b35bd3b7f7d8bf /core/src/ch/asynk/tankontank/screens | |
parent | a92265e0d0d9104b40dd2cda926c6762107b3481 (diff) | |
download | RustAndDust-daeebba49e1744603776ea1a732f17b606df3898.zip RustAndDust-daeebba49e1744603776ea1a732f17b606df3898.tar.gz |
fix run
Diffstat (limited to 'core/src/ch/asynk/tankontank/screens')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index efade05..13bb805 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -124,11 +124,9 @@ public class GameScreen implements Screen // blocked = false; if (button == Input.Buttons.LEFT) { dragPos.set(x, y); - if (ctrl.mayProcessTouch()) { - unprojectToHud(x, y, hudTouch); - unprojectToMap(x, y, mapTouch); - ctrl.touchDown(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); - } + unprojectToHud(x, y, hudTouch); + unprojectToMap(x, y, mapTouch); + ctrl.touchDown(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); } return true; } @@ -137,11 +135,9 @@ public class GameScreen implements Screen { // if (blocked) return true; if (button == Input.Buttons.LEFT) { - if (ctrl.mayProcessTouch()) { - unprojectToHud(x, y, hudTouch); - unprojectToMap(x, y, mapTouch); - ctrl.touchUp(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); - } + unprojectToHud(x, y, hudTouch); + unprojectToMap(x, y, mapTouch); + ctrl.touchUp(hudTouch.x, hudTouch.y, mapTouch.x, mapTouch.y); } // blocked = true; // inputDelay = INPUT_DELAY; |