From 9fde1b43baa4d747c414b0e8201a05d8c9d4d552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 29 Sep 2014 23:51:41 +0200 Subject: fix GameScreen --- core/src/ch/asynk/tankontank/screens/GameScreen.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index 6a0c715..0dbb4a9 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -13,6 +13,7 @@ import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; @@ -48,7 +49,7 @@ public class GameScreen implements Screen private GameFactory factory; private float maxZoomOut; - private final SpriteBatch mapBatch; + private final Batch mapBatch; private final OrthographicCamera cam; private final FitViewport mapViewport; private final ShapeRenderer debugShapes; @@ -206,7 +207,7 @@ public class GameScreen implements Screen mapBatch.setProjectionMatrix(cam.combined); mapBatch.begin(); - map.draw(mapBatch, 1); + map.draw(mapBatch); mapBatch.end(); hud.act(delta); -- cgit v1.1-2-g2b99