diff options
Diffstat (limited to 'test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java b/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java index 23887f6..b0a312a 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java @@ -73,8 +73,10 @@ public class MenuScreen extends AbstractScreen { hudTouch.set(x, y, 0); camera.unproject(hudTouch); - if (root.touch(hudTouch.x, hudTouch.y)) { + if (root.touch(hudTouch.x, hudTouch.y) != root) { switch(menu.touched()) { + case -1: + break; case 0: app.switchToUi(); break; |