fix: correction...

This commit is contained in:
Nicolas Hordé 2016-02-02 21:58:48 +01:00
parent cc9bdbc746
commit 87a63a44bb
2 changed files with 1 additions and 5 deletions

View File

@ -190,6 +190,7 @@ public class Worlds extends Actor {
public void setMaxWorldLevel() { public void setMaxWorldLevel() {
usedworld=getMaxUnlockWorlds(); usedworld=getMaxUnlockWorlds();
usedlevel=getMaxUnlockLevel(); usedlevel=getMaxUnlockLevel();
onchanged();
} }
public boolean isFirstWorld() { public boolean isFirstWorld() {

View File

@ -245,9 +245,6 @@ public class LevelScreen implements Screen {
stage.addActor(buttonLevels[j]); 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) { public LevelScreen(Worlds aworlds) {
@ -378,8 +375,6 @@ public class LevelScreen implements Screen {
worlds.DesactivateDebug(); worlds.DesactivateDebug();
worlds.updateUnlockLevels(); worlds.updateUnlockLevels();
worlds.setMaxWorldLevel(); worlds.setMaxWorldLevel();
loadWorld();
} }
} }
}); });