Don't freak out and sigfail if we weren't even expecting a challenge

This commit is contained in:
AJ Martinez 2023-03-21 00:52:46 -07:00 committed by James R
parent 15ec5ee90b
commit 72d2249e1f
2 changed files with 2 additions and 1 deletions

View file

@ -5353,6 +5353,7 @@ static void HandlePacketFromPlayer(SINT8 node)
}
}
}
expectChallenge = false;
break;
default:
DEBFILE(va("UNKNOWN PACKET TYPE RECEIVED %d from host %d\n",

View file

@ -974,7 +974,7 @@ void P_Ticker(boolean run)
if (leveltime <= CHALLENGEALL_START && client)
expectChallenge = true;
if (leveltime >= CHALLENGEALL_CLIENTCUTOFF && client)
if (leveltime > CHALLENGEALL_CLIENTCUTOFF && expectChallenge && client)
{
HandleSigfail("Didn't receive client signatures.");
return;