diff options
author | Tim Angus <tim@ngus.net> | 2003-08-29 01:03:20 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-08-29 01:03:20 +0000 |
commit | 4d460f1d159538e474b45bf44395c7a30665db7a (patch) | |
tree | 9c34bec2b37862abb1a8df58ed738366dfde061b /src/ui | |
parent | 559ea9195c7074efb420c44da9c32ca677b7b097 (diff) |
* Changed MOD_s for a couple of buildables to more sensible values
* Added logging MOD_s
* Exchanged ping and PB columns in server join menu
* Removed debug spraff from server browser
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_main.c | 6 | ||||
-rw-r--r-- | src/ui/ui_public.h | 13 |
2 files changed, 8 insertions, 11 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 21281f87..7a289e10 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -2909,8 +2909,6 @@ static qboolean UI_TeamMember_HandleKey(int flags, float *special, int key, qboo static qboolean UI_NetSource_HandleKey(int flags, float *special, int key) { if (key == K_MOUSE1 || key == K_MOUSE2 || key == K_ENTER || key == K_KP_ENTER) { - Com_Printf( "pre1 ui_netSource: %d\n", ui_netSource.integer ); - if (key == K_MOUSE2) { ui_netSource.integer--; if (ui_netSource.integer == AS_MPLAYER) @@ -2921,16 +2919,12 @@ static qboolean UI_NetSource_HandleKey(int flags, float *special, int key) { ui_netSource.integer++; } - Com_Printf( "pre ui_netSource: %d\n", ui_netSource.integer ); - if (ui_netSource.integer >= numNetSources) { ui_netSource.integer = 0; } else if (ui_netSource.integer < 0) { ui_netSource.integer = numNetSources - 1; } - Com_Printf( "post ui_netSource: %d\n", ui_netSource.integer ); - UI_BuildServerDisplayList(qtrue); if (ui_netSource.integer != AS_GLOBAL) { UI_StartServerRefresh(qtrue); diff --git a/src/ui/ui_public.h b/src/ui/ui_public.h index 6e9e261f..9cf36d66 100644 --- a/src/ui/ui_public.h +++ b/src/ui/ui_public.h @@ -140,11 +140,14 @@ typedef enum { UIMENU_POSTGAME } uiMenuCommand_t; -#define SORT_HOST 0 -#define SORT_MAP 1 -#define SORT_CLIENTS 2 -#define SORT_PING 3 -#define SORT_PUNKBUSTER 4 +typedef enum +{ + SORT_HOST, + SORT_MAP, + SORT_CLIENTS, + SORT_PUNKBUSTER, + SORT_PING +} serverSortField_t; typedef enum { UI_GETAPIVERSION = 0, // system reserved |