diff --git a/mines.c b/mines.c index d40bb9f..16075aa 100644 --- a/mines.c +++ b/mines.c @@ -2146,6 +2146,8 @@ static int open_square(game_state *state, int x, int y) break; } + /* If the player has already lost, don't let them win as well. */ + if (state->dead) return 0; /* * Finally, scan the grid and see if exactly as many squares * are still covered as there are mines. If so, set the `won'