mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
fix(multiplayer): reconcile authoritative initial connections
This commit is contained in:
@@ -32,11 +32,11 @@ func PrepareProposal(id string, playlist Playlist, formation MatchFormation, ran
|
||||
switch playlist {
|
||||
case Casual:
|
||||
participants := make([]ConnectParticipant, 0, len(formation.Selection.Players))
|
||||
for _, player := range formation.Teams.Team0 {
|
||||
participants = append(participants, ConnectParticipant{PlayerID: player.PlayerID, Team: 0})
|
||||
for index, player := range formation.Teams.Team0 {
|
||||
participants = append(participants, ConnectParticipant{PlayerID: player.PlayerID, Team: 0, Slot: index})
|
||||
}
|
||||
for _, player := range formation.Teams.Team1 {
|
||||
participants = append(participants, ConnectParticipant{PlayerID: player.PlayerID, Team: 1})
|
||||
for index, player := range formation.Teams.Team1 {
|
||||
participants = append(participants, ConnectParticipant{PlayerID: player.PlayerID, Team: 1, Slot: 3 + index})
|
||||
}
|
||||
var err error
|
||||
lineup, err = BuildCasualLineup(participants)
|
||||
|
||||
Reference in New Issue
Block a user