Have server send protocol version in challengeResponse so protocol negotiation works. (Where did this one get lost?)

This commit is contained in:
Thilo Schulz 2011-07-15 14:49:51 +00:00
parent f6d6ed4b30
commit 58a5d3d383

View file

@ -178,8 +178,8 @@ void SV_GetChallenge(netadr_t from)
#endif
challenge->pingTime = svs.time;
NET_OutOfBandPrint(NS_SERVER, challenge->adr, "challengeResponse %d %d",
challenge->challenge, clientChallenge);
NET_OutOfBandPrint(NS_SERVER, challenge->adr, "challengeResponse %d %d %d",
challenge->challenge, clientChallenge, com_protocol->integer);
}
#ifndef STANDALONE
@ -232,7 +232,7 @@ void SV_AuthorizeIpPacket( netadr_t from ) {
}
if ( !Q_stricmp( s, "accept" ) ) {
NET_OutOfBandPrint(NS_SERVER, challengeptr->adr,
"challengeResponse %d %d", challengeptr->challenge, challengeptr->clientChallenge);
"challengeResponse %d %d %d", challengeptr->challenge, challengeptr->clientChallenge, com_protocol->integer);
return;
}
if ( !Q_stricmp( s, "unknown" ) ) {