From 474b0610361da68055a948a0e71e7f928cb64829 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Fri, 1 May 2020 18:58:56 +0200 Subject: [PATCH] Client: always set the rack when moving a tile to the board --- trivabble.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/trivabble.js b/trivabble.js index 59a5bdc..3a75fc7 100644 --- a/trivabble.js +++ b/trivabble.js @@ -27,7 +27,7 @@ (function () { "use strict"; - const VERSION = 202004262313; + const VERSION = 202005011900; const Conf = window.TrivabbleConf || {}; @@ -252,7 +252,11 @@ moveRack.rack[moveCMD.indexTo] = ""; sendCmds([moveRack, moveCMD]); } else { - sendCmds([moveCMD]); + // setting the rack is not necessary in most cases, but the + // player could have moved some letters of the rack when moving + // a tile to the board so let's set the rack in any case + // FIXME this could be improved + sendCmds([moveCMD, moveRack]); } } -- 2.30.2