Keep match ID when rematching

This commit is contained in:
Trevor Slocum 2024-08-07 16:53:26 -07:00
parent 06085b69d0
commit 0c550b6f75

View file

@ -1061,7 +1061,7 @@ COMMANDS:
} else if clientGame.rematch != 0 && clientGame.rematch != cmd.client.playerNumber {
s.gamesLock.Lock()
newGame := newServerGame(<-s.newGameIDs, clientGame.Variant)
newGame := newServerGame(clientGame.id, clientGame.Variant)
newGame.name = clientGame.name
newGame.Points = clientGame.Points
newGame.password = clientGame.password