Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
140
Issues
140
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Commits
34d42d6c
Commit
34d42d6c
authored
Sep 20, 2020
by
Rob Swindell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit cleanly even when not resetting the game.
parent
4dc58cdd
Pipeline
#198
passed with stage
in 18 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
xtrn/tw2/twint500.js
xtrn/tw2/twint500.js
+20
-21
No files found.
xtrn/tw2/twint500.js
View file @
34d42d6c
...
...
@@ -158,28 +158,27 @@ if(this.uifc == undefined) {
}
}
if
(
!
reset
)
exit
(
0
);
if
(
reset
)
{
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
"
);
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
"
));
ResetAllPlayers
();
ResetAllPlanets
();
ResetAllMessages
();
InitializeTeams
();
InitializeSectors
();
InitializePorts
();
InitializeCabal
();
db
.
write
(
Settings
.
DB
,
'
twopeng
'
,[],
LOCK_WRITE
);
ResetAllPlayers
();
ResetAllPlanets
();
ResetAllMessages
();
InitializeTeams
();
InitializeSectors
();
InitializePorts
();
InitializeCabal
();
db
.
write
(
Settings
.
DB
,
'
twopeng
'
,[],
LOCK_WRITE
);
}
if
(
this
.
uifc
)
{
uifc
.
pop
();
uifc
.
bail
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment