Merge branch 'fix-dupe-pubkey-detect' into 'master'

Fix duplicate pubkey detection misfiring on retry (resolves #746)

Closes #746

See merge request KartKrew/Kart!1597
This commit is contained in:
toaster 2023-11-05 09:50:12 +00:00
commit 9ca23365aa

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