From f908758ad74c6cba76b8888f90f170c4e04918f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 14 Sep 2018 15:35:01 +0200 Subject: GameScreen : enable debug only in UI state --- test/src/ch/asynk/gdx/board/test/GameScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/ch/asynk/gdx/board/test/GameScreen.java b/test/src/ch/asynk/gdx/board/test/GameScreen.java index 621c7d1..63f9394 100644 --- a/test/src/ch/asynk/gdx/board/test/GameScreen.java +++ b/test/src/ch/asynk/gdx/board/test/GameScreen.java @@ -21,7 +21,7 @@ public class GameScreen implements Screen private static final float ZOOM_SCROLL_FACTOR = .1f; private static final float ZOOM_GESTURE_FACTOR = .01f; - private static final boolean DEBUG = false; + private static final boolean DEBUG = true; private final GdxBoardTest app; private final GameHud hud; @@ -108,7 +108,7 @@ public class GameScreen implements Screen hud.draw(batch); batch.end(); - if (DEBUG) { + if (DEBUG && this.state == State.UI) { Gdx.gl.glEnable(GL20.GL_BLEND); debugShapes.setAutoShapeType(true); debugShapes.setProjectionMatrix(camera.getHudMatrix()); -- cgit v1.1-2-g2b99