fix: usr: do not hide the end-game overlay ever #8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user