mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-09-08 19:35:11 -05:00
Fix the win counter when rewinding from the results screen in replays
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user