Skip to content
Snippets Groups Projects
Commit 34d42d6c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Exit cleanly even when not resetting the game.

parent 4dc58cdd
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #198 passed
...@@ -158,9 +158,7 @@ if(this.uifc == undefined) { ...@@ -158,9 +158,7 @@ if(this.uifc == undefined) {
} }
} }
if(!reset) if(reset) {
exit(0);
print("Resetting game"); print("Resetting game");
load(fname("ports.js")); load(fname("ports.js"));
load(fname("planets.js")); load(fname("planets.js"));
...@@ -180,6 +178,7 @@ InitializeSectors(); ...@@ -180,6 +178,7 @@ 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment