Skip to content

Commit

Permalink
fix: player count retrieved from match data
Browse files Browse the repository at this point in the history
  • Loading branch information
wofwof committed Jun 29, 2023
1 parent 16a23cd commit 0ca518b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private void OnMatchmakingSucceeded(MatchmakingFinishedData matchData)
matchData.TcpUdpServerAddress, matchData.WebServerAddress, matchData.UserSecret,
_elympicsGameConfig.UseWeb, _elympicsGameConfig.TestMatchData.regionName);
var matchClient = new RemoteMatchClient(gameServerClient, _elympicsGameConfig);

_elympicsGameConfig.players = matchData.MatchedPlayers.Length;
_client.InitializeInternal(_elympicsGameConfig, matchConnectClient, matchClient, new InitialMatchPlayerDataGuid
{
Player = _initialPlayerData.Player,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected override void InitializeClient(ElympicsClient client, ElympicsGameConf
matchData.TcpUdpServerAddress, matchData.WebServerAddress, matchData.UserSecret,
elympicsGameConfig.UseWeb, matchData.RegionName);
var matchClient = new RemoteMatchClient(gameServerClient, elympicsGameConfig);

elympicsGameConfig.players = matchData.MatchedPlayers.Length;
client.InitializeInternal(elympicsGameConfig, matchConnectClient, matchClient, new InitialMatchPlayerDataGuid
{
Player = player,
Expand Down

0 comments on commit 0ca518b

Please sign in to comment.