From 18d0e63a79131ef553a18ae82e78d33c11779957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 31 Dec 2014 20:14:18 +0100 Subject: Factory: fix assetsLoaded usage --- core/src/ch/asynk/tankontank/game/battles/Factory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/tankontank/game/battles/Factory.java b/core/src/ch/asynk/tankontank/game/battles/Factory.java index 5a594d3..db81537 100644 --- a/core/src/ch/asynk/tankontank/game/battles/Factory.java +++ b/core/src/ch/asynk/tankontank/game/battles/Factory.java @@ -64,7 +64,7 @@ public class Factory implements Board.TileBuilder, Disposable this.pawnsAtlas = game.manager.get("data/units.atlas", TextureAtlas.class); this.pawnOverlaysAtlas = game.manager.get("data/unit-overlays.atlas", TextureAtlas.class); this.tileOverlaysAtlas = game.manager.get("data/hex-overlays.atlas", TextureAtlas.class); - this.assetsLoaded = false; + this.assetsLoaded = true; } @Override @@ -75,6 +75,7 @@ public class Factory implements Board.TileBuilder, Disposable pawnsAtlas.dispose(); pawnOverlaysAtlas.dispose(); tileOverlaysAtlas.dispose(); + this.assetsLoaded = false; } private Board.Config config() -- cgit v1.1-2-g2b99