summaryrefslogtreecommitdiffstats
path: root/test/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-09-14 15:35:01 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-09-14 15:35:01 +0200
commitf908758ad74c6cba76b8888f90f170c4e04918f9 (patch)
tree307610289ed893a0b5f80f9763ae7cbf847c612f /test/src/ch/asynk
parent5fdda950db81e52afdec1c70e2b3a5fbe7947bc8 (diff)
downloadgdx-boardgame-f908758ad74c6cba76b8888f90f170c4e04918f9.zip
gdx-boardgame-f908758ad74c6cba76b8888f90f170c4e04918f9.tar.gz
GameScreen : enable debug only in UI state
Diffstat (limited to 'test/src/ch/asynk')
-rw-r--r--test/src/ch/asynk/gdx/board/test/GameScreen.java4
1 files 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());