summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_main.c6
-rw-r--r--src/ui/ui_public.h13
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