mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix 1.11 servers filtered out
This commit is contained in:
parent
01dfbcdbfe
commit
a0e2162dd7
1 changed files with 21 additions and 23 deletions
|
@ -3725,36 +3725,34 @@ void CL_ServerInfoPacket( netadr_t from, msg_t *msg ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!com_target_demo->integer && prot == protocol_version_demo) {
|
||||
if (!com_target_demo->integer && protocol_version_demo != protocol_version_full && prot == protocol_version_demo) {
|
||||
Com_DPrintf("Full version found compatible demo protocol version. %s\n", infoString);
|
||||
}
|
||||
|
||||
pszVersion = Info_ValueForKey(infoString, "gamever");
|
||||
pszServerType = Info_ValueForKey(infoString, "serverType");
|
||||
|
||||
if (!*pszVersion) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (*pszVersion == 'd') {
|
||||
pszVersion++;
|
||||
}
|
||||
|
||||
if (com_target_game->integer >= target_game_e::TG_MOHTT) {
|
||||
if (atoi(pszServerType) == target_game_e::TG_MOHTT) {
|
||||
if (fabs(atof(pszVersion)) < 2.3f) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (fabs(atof(pszVersion)) < 2.1f) {
|
||||
return;
|
||||
}
|
||||
if (*pszVersion) {
|
||||
if (*pszVersion == 'd') {
|
||||
pszVersion++;
|
||||
}
|
||||
} else {
|
||||
if (fabs(atof(pszVersion) - com_target_version->value) > 0.1f) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (com_target_game->integer >= target_game_e::TG_MOHTT) {
|
||||
if (atoi(pszServerType) == target_game_e::TG_MOHTT) {
|
||||
if (fabs(atof(pszVersion)) < 2.3f) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (fabs(atof(pszVersion)) < 2.1f) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (fabs(atof(pszVersion) - com_target_version->value) > 0.1f) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// iterate servers waiting for ping response
|
||||
for (i=0; i<MAX_PINGREQUESTS; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue