From 06f929b5471d6568e216281ecbbba5fb0c3deb56 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Fri, 18 Aug 2023 21:41:40 +1000 Subject: [PATCH] Fix the win counter when rewinding from the results screen in replays --- TableturfBattleClient/src/Pages/GamePage.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/TableturfBattleClient/src/Pages/GamePage.ts b/TableturfBattleClient/src/Pages/GamePage.ts index 2217c39..8d9bd09 100644 --- a/TableturfBattleClient/src/Pages/GamePage.ts +++ b/TableturfBattleClient/src/Pages/GamePage.ts @@ -676,6 +676,7 @@ function showResult() { el.classList.remove('lose'); el.classList.remove('draw'); el.innerText = 'Victory'; + if (currentReplay) currentGame.players[i].gamesWon++; playerBars[i].winCounter.wins++; } else { el.classList.remove('win');