Skip to content

Commit

Permalink
[backend] ne končaj igre v primeru neskončne igre
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Oct 28, 2023
1 parent 85da92c commit 2baeeef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/ws/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *serverImpl) Results(gameId string) {
}
}
if (game.GameCount == game.GamesRequired || game.GamesRequired == -1) && !game.Replay {
if game.VotedAdditionOfGames <= 0 {
if game.VotedAdditionOfGames <= 0 && game.GamesRequired != -1 {
s.EndGame(gameId)
return
}
Expand Down

0 comments on commit 2baeeef

Please sign in to comment.