mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-14 13:42:09 +00:00
feat(multiplayer): persist ranked arena allocations
This commit is contained in:
@@ -74,6 +74,9 @@ func PrepareProposal(id string, playlist Playlist, formation MatchFormation, ran
|
||||
}
|
||||
proposal.Region = formation.Selection.Region
|
||||
proposal.Protocol = formation.Selection.Players[0].ProtocolVersion
|
||||
if playlist == Ranked {
|
||||
proposal.ArenaPath = arena.Path
|
||||
}
|
||||
for _, player := range formation.Selection.Players {
|
||||
if player.ProtocolVersion != proposal.Protocol {
|
||||
return PreparedProposal{}, fmt.Errorf("formed match has mixed protocols")
|
||||
|
||||
Reference in New Issue
Block a user