Fix duplicate pubkey detection misfiring on retry

This commit is contained in:
AJ Martinez 2023-11-04 18:20:26 -07:00
parent 6e6c0cd71f
commit 78086fc625

View file

@ -4231,6 +4231,8 @@ static void HandleConnect(SINT8 node)
// Players already here
for (j = 0; j < MAXPLAYERS; j++)
{
if (!playeringame[j])
continue;
if (memcmp(lastReceivedKey[node][i], players[j].public_key, PUBKEYLENGTH) == 0)
{
#ifdef DEVELOP