projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70614f5
)
Fix corr games 'auto-lost-on-time'
author
Benjamin Auder
<benjamin.auder@somewhere>
Wed, 10 Feb 2021 11:28:04 +0000
(12:28 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Wed, 10 Feb 2021 11:28:04 +0000
(12:28 +0100)
server/models/Game.js
patch
|
blob
|
blame
|
history
diff --git
a/server/models/Game.js
b/server/models/Game.js
index
76a91dc
..
7f10b65
100644
(file)
--- a/
server/models/Game.js
+++ b/
server/models/Game.js
@@
-510,6
+510,7
@@
const GameModel = {
}
// Set score if lost on time and >= 2 moves:
else if (
}
// Set score if lost on time and >= 2 moves:
else if (
+ g.score == '*' &&
!!movesGroups[g.id] &&
movesGroups[g.id].nbMoves >= 2 &&
tsNow - movesGroups[g.id].lastMaj >
!!movesGroups[g.id] &&
movesGroups[g.id].nbMoves >= 2 &&
tsNow - movesGroups[g.id].lastMaj >