...
 
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"));
load(fname("planets.js"));
load(fname("teams.js"));
load(fname("sectors.js"));
load(fname("maint.js"));
load(fname("players.js"));
load(fname("messages.js"));
load(fname("computer.js"));
load(fname("input.js"));
print("Resetting game"); ResetAllPlayers();
load(fname("ports.js")); ResetAllPlanets();
load(fname("planets.js")); ResetAllMessages();
load(fname("teams.js")); InitializeTeams();
load(fname("sectors.js")); InitializeSectors();
load(fname("maint.js")); InitializePorts();
load(fname("players.js")); InitializeCabal();
load(fname("messages.js")); db.write(Settings.DB,'twopeng',[],LOCK_WRITE);
load(fname("computer.js")); }
load(fname("input.js"));
ResetAllPlayers();
ResetAllPlanets();
ResetAllMessages();
InitializeTeams();
InitializeSectors();
InitializePorts();
InitializeCabal();
db.write(Settings.DB,'twopeng',[],LOCK_WRITE);
if(this.uifc) { if(this.uifc) {
uifc.pop(); uifc.pop();
uifc.bail(); uifc.bail();
......