Private
Public Access
1
0

fix: usr: do not hide the end-game overlay ever #8

This commit is contained in:
2026-04-21 08:48:44 +02:00
parent 20a969705d
commit 0d04ec91e7
3 changed files with 10 additions and 5 deletions

View File

@@ -218,7 +218,10 @@ export const GameProvider = ({ children }) => {
if (redWins || blueWins || resign) {
sounds.current.won.play();
if (!resign) showOverlay((redWins ? 'Red' : 'Blue') + ' wins the game!', 'Play again!');
if (!resign) {
endRef.current = true;
showOverlay((redWins ? 'Red' : 'Blue') + ' wins the game!', null);
}
showLeftMines(leftMines);
syncActivePlayer(false);