summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-29 23:51:41 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-29 23:51:41 +0200
commit9fde1b43baa4d747c414b0e8201a05d8c9d4d552 (patch)
tree760642ea824069b384c8fc4cac10261035030f91 /core/src/ch/asynk/tankontank
parentd3b9d0f40f23d9ae6439e733a7e41c0d0a2899c3 (diff)
downloadRustAndDust-9fde1b43baa4d747c414b0e8201a05d8c9d4d552.zip
RustAndDust-9fde1b43baa4d747c414b0e8201a05d8c9d4d552.tar.gz
fix GameScreen
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameScreen.java5
1 files 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);