Skip to content

Commit

Permalink
Fixes #344
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Oct 19, 2024
1 parent db68899 commit a804270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/game/lobby.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func advanceLobbyPredefineDrawer(lobby *Lobby, roundOver bool, newDrawer *Player
// Game over, meaning all rounds have been played out. Alternatively
// We can reach this state if all players are spectating and or are not
// connected anymore.
if lobby.Round == lobby.Rounds || newDrawer == nil {
if lobby.Round == lobby.Rounds || newDrawer == nil && lobby.State == Ongoing {
lobby.State = GameOver

for _, player := range lobby.players {
Expand Down

0 comments on commit a804270

Please sign in to comment.