From c86f0ec6dab77c4b56065637054b4832c62865eb Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 13 Jul 2014 00:04:09 +0200 Subject: fix wrapping of net sources --- src/ui/ui_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui') 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 ); -- cgit