From: Benjamin Auder Date: Wed, 10 Feb 2021 11:28:04 +0000 (+0100) Subject: Fix corr games 'auto-lost-on-time' X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/user/common.css%27%29%20%7D%7D?a=commitdiff_plain;h=b5ead37abca7898252c11a0d4a9e390a638fb838;p=vchess.git Fix corr games 'auto-lost-on-time' --- diff --git a/server/models/Game.js b/server/models/Game.js index 76a91dc9..7f10b65a 100644 --- 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 >