added punkbuster label for rtcw

git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@163 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
Ludwig Nussel 2002-05-07 18:48:52 +00:00 committed by l-n
parent 0045c19076
commit ab7e59a920
4 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,6 @@
May 07, 2002: Ludwig Nussel <l-n@users.sourceforge.net>
- Added punkbuster label for rtcw. Yes it's ugly but ...
May 05, 2002: Ludwig Nussel <l-n@users.sourceforge.net>
- fix LAN Browsing for games that need a port change (Rune)
- replaced static struct for q3 options with a more flexible g_datalist

View File

@ -1518,6 +1518,9 @@ static void q3_analyze_serverinfo (struct server *s) {
else if (strcmp (*info_ptr, "sv_privateClients") == 0) {
s->private_client = strtol (info_ptr[1], NULL, 10);
}
else if (!strcmp(*info_ptr, "sv_punkbuster") && info_ptr[1] && info_ptr[1][0] == '1') {
s->flags |= SERVER_PUNKBUSTER;
}
}
if(fs_game)

View File

@ -95,6 +95,7 @@ static int server_clist_refresh_row (struct server *s, int row) {
char *retries;
struct pixmap *retries_pix = NULL;
int col;
char* private_col_text = "";
text[0] = NULL;
@ -184,12 +185,17 @@ static int server_clist_refresh_row (struct server *s, int row) {
if (s->flags & SERVER_PUNKBUSTER )
{
private_col_text = "Pb";
}
/* Show if the server is private or not */
if (s->flags & SERVER_PASSWORD ) {
gtk_clist_set_pixtext (server_clist, row, 4, "", 0,
gtk_clist_set_pixtext (server_clist, row, 4, private_col_text, 0,
locked_pix.pix, locked_pix.mask );
} else {
gtk_clist_set_text (server_clist, row, 4, "" );
gtk_clist_set_text (server_clist, row, 4, private_col_text );
}
get_server_pixmap (main_window, s, &server_pixmap_cache, &server_pixmap,

View File

@ -77,6 +77,7 @@
#define SERVER_PASSWORD 0x10
#define SERVER_SP_PASSWORD 0x20
#define SERVER_SPECTATE 0x40
#define SERVER_PUNKBUSTER 0x80
enum launch_mode {
LAUNCH_NORMAL,