From 78086fc625685fd26bc3b01b43def78336070465 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sat, 4 Nov 2023 18:20:26 -0700 Subject: [PATCH] Fix duplicate pubkey detection misfiring on retry --- src/d_clisrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index b33149803..027407767 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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