Skip to content

Commit

Permalink
Merge pull request #199 from inada-s/p2p-matching-opt
Browse files Browse the repository at this point in the history
add team data in maching info
  • Loading branch information
inada-s authored Oct 4, 2022
2 parents 76aaea3 + 29a292d commit 171fdbe
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 132 deletions.
3 changes: 2 additions & 1 deletion gdxsv/lbs_lobby.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ func (l *LbsLobby) makeP2PMatchingMsg(battleCode string, participants []*LbsPeer
SessionId: int32(hash.Sum32()),
PlayerCount: int32(len(participants)),
PeerId: 0,
TimeoutMinMs: 5000,
TimeoutMinMs: 6500,
TimeoutMaxMs: 10000,
Candidates: nil,
}
Expand Down Expand Up @@ -696,6 +696,7 @@ func (l *LbsLobby) makeP2PMatchingMsg(battleCode string, participants []*LbsPeer
PeerId: int32(i),
Ip: ip,
Port: int32(portInt),
Team: int32(p.Team),
})
}
}
Expand Down
Loading

0 comments on commit 171fdbe

Please sign in to comment.