...
 
Commits (1)
...@@ -158,28 +158,27 @@ if(this.uifc == undefined) { ...@@ -158,28 +158,27 @@ if(this.uifc == undefined) {
} }
} }
if(!reset) if(reset) {
exit(0); print("Resetting game");
load(fname("ports.js"));
print("Resetting game"); load(fname("planets.js"));
load(fname("ports.js")); load(fname("teams.js"));
load(fname("planets.js")); load(fname("sectors.js"));
load(fname("teams.js")); load(fname("maint.js"));
load(fname("sectors.js")); load(fname("players.js"));
load(fname("maint.js")); load(fname("messages.js"));
load(fname("players.js")); load(fname("computer.js"));
load(fname("messages.js")); load(fname("input.js"));
load(fname("computer.js"));
load(fname("input.js"));
ResetAllPlayers(); ResetAllPlayers();
ResetAllPlanets(); ResetAllPlanets();
ResetAllMessages(); ResetAllMessages();
InitializeTeams(); InitializeTeams();
InitializeSectors(); InitializeSectors();
InitializePorts(); InitializePorts();
InitializeCabal(); InitializeCabal();
db.write(Settings.DB,'twopeng',[],LOCK_WRITE); db.write(Settings.DB,'twopeng',[],LOCK_WRITE);
}
if(this.uifc) { if(this.uifc) {
uifc.pop(); uifc.pop();
uifc.bail(); uifc.bail();
......