|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: netsrvlist.c,v 1.4 2004/01/03 21:40:56 stpohle Exp $
|
|
|
|
|
/* $Id: netsrvlist.c,v 1.5 2004/01/03 22:32:18 stpohle Exp $
|
|
|
|
|
* netsrvlist.c - shows a list of possible servers.*/
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
@ -31,9 +31,15 @@ void srvlist_rebuildlist () {
|
|
|
|
|
d_printf ("srvlist_rebuildlist\n");
|
|
|
|
|
|
|
|
|
|
/* delete the whole list */
|
|
|
|
|
for (i = 0; i < MAX_SRVLIST; i++) {
|
|
|
|
|
srvlst_text[i].text[0] = 0;
|
|
|
|
|
srvlst_text[i].next = NULL;
|
|
|
|
|
srvlst_dat[i].host[0] = 0;
|
|
|
|
|
srvlst_dat[i].port[0] = 0;
|
|
|
|
|
srvlst_dat[i].gamename[0] = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
srvlst_cnt = 0;
|
|
|
|
|
srvlst_text[0].text[0] = 0;
|
|
|
|
|
srvlst_text[0].next = NULL;
|
|
|
|
|
|
|
|
|
|
/* add the OpenGameCache Entrys */
|
|
|
|
|
if (bman.notifygamemaster) {
|
|
|
|
@ -65,7 +71,10 @@ void srvlist_rebuildlist () {
|
|
|
|
|
sprintf (text, "%s:%s", srvlst_dat[i].host, srvlst_dat[i].port);
|
|
|
|
|
strncpy (srvlst_text[i].text, text, LEN_CHARENTRY);
|
|
|
|
|
}
|
|
|
|
|
if (srvlst_cnt == 0)
|
|
|
|
|
strcpy (srvlst_text[0].text, "No Servers Found");
|
|
|
|
|
charlist_fillarraypointer (srvlst_text, srvlst_cnt);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|