summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 00:04:09 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:08 +0100
commitc86f0ec6dab77c4b56065637054b4832c62865eb (patch)
treef3d116b7c4500046014f591cf0d43972f71e1942 /src/ui
parenta11fa76d13a0b4ad4575774e1fd68bde1f4097cb (diff)
fix wrapping of net sources
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 8b516f05..64424f5a 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -2130,10 +2130,10 @@ static qboolean UI_NetSource_HandleKey( int key )
ui_netSource.integer++;
}
- if( ui_netSource.integer >= numNetSources )
- ui_netSource.integer = 0;
- else if( ui_netSource.integer < 0 )
+ if( ui_netSource.integer < 0 )
ui_netSource.integer = numNetSources - 1;
+ else if( ui_netSource.integer >= numNetSources )
+ ui_netSource.integer = 0;
UI_BuildServerDisplayList( qtrue );