Modified game.c to look for 1.2+ server version instead of just 1.27 when deciding if the server supports the new game types

git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@24 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
Alex Burger 2000-12-28 18:27:09 +00:00 committed by alex_b
parent f0690de007
commit 105c2516b0

View File

@ -785,10 +785,11 @@ static void q3_analyze_serverinfo (struct server *s) {
s->flags |= SERVER_SPECTATE;
// Get the server version first.
// If it is 1.27, the new game types are used
// If it is 1.2+, the new game types are used
for (info_ptr = s->info; info_ptr && *info_ptr; info_ptr += 2) {
if (strcmp (*info_ptr, "version") == 0) {
if (!strncmp(info_ptr[1], "Q3 1.27",7))
if (info_ptr[1][3] >= '1') // eg: 1 of 1.27
if (info_ptr[1][5] >= '2') // eg: 2 of 1.27
newtypes=1;
else
newtypes=0;