From 87a63a44bb51bafab485007670fa163d3add32bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Tue, 2 Feb 2016 21:58:48 +0100 Subject: [PATCH] fix: correction... --- core/src/fr/evolving/automata/Worlds.java | 1 + core/src/fr/evolving/screens/LevelScreen.java | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/fr/evolving/automata/Worlds.java b/core/src/fr/evolving/automata/Worlds.java index c0b43e0..9ed088b 100644 --- a/core/src/fr/evolving/automata/Worlds.java +++ b/core/src/fr/evolving/automata/Worlds.java @@ -190,6 +190,7 @@ public class Worlds extends Actor { public void setMaxWorldLevel() { usedworld=getMaxUnlockWorlds(); usedlevel=getMaxUnlockLevel(); + onchanged(); } public boolean isFirstWorld() { diff --git a/core/src/fr/evolving/screens/LevelScreen.java b/core/src/fr/evolving/screens/LevelScreen.java index fc1d83e..de4c186 100644 --- a/core/src/fr/evolving/screens/LevelScreen.java +++ b/core/src/fr/evolving/screens/LevelScreen.java @@ -245,9 +245,6 @@ public class LevelScreen implements Screen { stage.addActor(buttonLevels[j]); } } - /*Gdx.app.debug(getClass().getSimpleName(), "Mise en place du level 0."); - buttonLevels[0].setChecked(true); - showlevel(buttonLevels[0]);*/ } public LevelScreen(Worlds aworlds) { @@ -378,8 +375,6 @@ public class LevelScreen implements Screen { worlds.DesactivateDebug(); worlds.updateUnlockLevels(); worlds.setMaxWorldLevel(); - loadWorld(); - } } });