Fix creating rematch for more than one point

This commit is contained in:
Trevor Slocum 2023-11-14 15:12:40 -08:00
parent ea34f7b9b3
commit a1b1b0d30f

View file

@ -1029,11 +1029,14 @@ COMMANDS:
newGame := newServerGame(<-s.newGameIDs)
newGame.name = clientGame.name
newGame.Points = clientGame.Points
newGame.password = clientGame.password
newGame.client1 = clientGame.client1
newGame.client2 = clientGame.client2
newGame.Player1 = clientGame.Player1
newGame.Player2 = clientGame.Player2
newGame.allowed1 = clientGame.allowed1
newGame.allowed2 = clientGame.allowed2
s.games = append(s.games, newGame)
clientGame.client1 = nil