projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix corr games 'auto-lost-on-time'
[vchess.git]
/
server
/
models
/
Game.js
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 (
+ g.score == '*' &&
!!movesGroups[g.id] &&
movesGroups[g.id].nbMoves >= 2 &&
tsNow - movesGroups[g.id].lastMaj >