This commit is contained in:
Anuken
2020-03-17 09:07:31 -04:00
parent 32ffacf8f6
commit 24f5921863

View File

@@ -260,6 +260,7 @@ public class Control implements ApplicationListener, Loadable{
state.rules.sector = sector;
state.set(State.playing);
}catch(SaveException e){
sector.save = null;
Log.err(e);
ui.showErrorMessage("$save.corrupted");
slot.delete();
@@ -271,12 +272,9 @@ public class Control implements ApplicationListener, Loadable{
logic.reset();
world.loadSector(sector);
state.rules.sector = sector;
//TODO enable for lighting
//state.rules.lighting = true;
logic.play();
control.saves.saveSector(sector);
//TODO uncomment for efffect
//Events.fire(Trigger.newGame);
Events.fire(Trigger.newGame);
}
});
}