- add LAN master for ut2004

- detect whether a server is ut2003 or ut2004


git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@596 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
Ludwig Nussel 2004-02-17 23:14:10 +00:00 committed by l-n
parent 3ef875d1f9
commit c5b312c3de
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Feb 17, 2004: Ludwig Nussel <l-n@users.sourceforge.net>
- add LAN master for ut2004
- detect whether a server is ut2003 or ut2004
Feb 16, 2004: Ludwig Nussel <l-n@users.sourceforge.net>
- don't unset game if it's baseq3 to be able to filter for it

View File

@ -1554,6 +1554,15 @@ static void un_analyze_serverinfo (struct server *s) {
else if (strcmp (*info_ptr, "hostport") == 0) {
hostport = atoi(info_ptr[1]);
}
else if ((s->type == UT2004_SERVER || s->type == UT2_SERVER)
&& strcmp (*info_ptr, "ServerVersion") == 0
&& strlen(info_ptr[1]) == 4)
{
if(info_ptr[1][0] == '3')
s->type = UT2004_SERVER;
else if(info_ptr[1][0] == '2')
s->type = UT2_SERVER;
}
else if (strcmp (*info_ptr, "gamename") == 0) {
unsigned i;
for( i = 0 ; gsname2type[i].name ; ++i )

View File

@ -1053,6 +1053,7 @@ static char *builtin_masters_update_info[] = {
"ADD WOETS lan://255.255.255.255 LAN",
"ADD EFS lan://255.255.255.255 LAN",
"ADD UT2S lan://255.255.255.255 LAN",
"ADD UT2004S lan://255.255.255.255 LAN",
"ADD UNS lan://255.255.255.255 LAN",
"ADD RUNESRV lan://255.255.255.255 LAN",
"ADD MHS lan://255.255.255.255 LAN",