Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
aa3be831
Commit
aa3be831
authored
11 years ago
by
mcmlxxix
Browse files
Options
Downloads
Patches
Plain Diff
dont attempt to delete games that have already been deleted, eh?
parent
35c86aac
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/dicewarz/dice.js
+3
-0
3 additions, 0 deletions
xtrn/dicewarz/dice.js
with
3 additions
and
0 deletions
xtrn/dicewarz/dice.js
+
3
−
0
View file @
aa3be831
...
@@ -1594,6 +1594,9 @@ function GameStatusInfo()
...
@@ -1594,6 +1594,9 @@ function GameStatusInfo()
}
}
for
(
var
completed
in
this
.
completed
)
{
for
(
var
completed
in
this
.
completed
)
{
var
gm
=
this
.
completed
[
completed
];
var
gm
=
this
.
completed
[
completed
];
/* skip games that have already been deleted */
if
(
!
this
.
gameData
[
gm
])
continue
;
var
daysOld
=
(
time
()
-
this
.
gameData
[
gm
].
lastModified
)
/
daySeconds
;
var
daysOld
=
(
time
()
-
this
.
gameData
[
gm
].
lastModified
)
/
daySeconds
;
if
(
this
.
gameData
[
gm
].
singlePlayer
===
true
||
daysOld
>=
settings
.
keepGameData
)
{
if
(
this
.
gameData
[
gm
].
singlePlayer
===
true
||
daysOld
>=
settings
.
keepGameData
)
{
file_remove
(
this
.
gameData
[
gm
].
fileName
);
file_remove
(
this
.
gameData
[
gm
].
fileName
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment