Skip to content

Commit

Permalink
netplay: Fix player join WZEVENT message
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jul 2, 2024
1 parent 3eb8343 commit 52d4fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netplay/netplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4290,7 +4290,7 @@ static void NETallowJoining()

std::string joinerPublicKeyB64 = base64Encode(joinRequestInfo.identity.toBytes(EcKey::Public));
std::string joinerIdentityHash = joinRequestInfo.identity.publicHashString();
wz_command_interface_output("WZEVENT: player join: %u %s %s %s\n", i, joinerPublicKeyB64.c_str(), joinerIdentityHash.c_str(), NetPlay.players[i].IPtextAddress);
wz_command_interface_output("WZEVENT: player join: %u %s %s %s\n", index, joinerPublicKeyB64.c_str(), joinerIdentityHash.c_str(), NetPlay.players[index].IPtextAddress);

// Narrowcast to new player that everyone has joined.
for (uint8_t j = 0; j < MAX_CONNECTED_PLAYERS; ++j)
Expand Down

0 comments on commit 52d4fb4

Please sign in to comment.