diff options
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 |
commit | c86f0ec6dab77c4b56065637054b4832c62865eb (patch) | |
tree | f3d116b7c4500046014f591cf0d43972f71e1942 /src/ui/ui_main.c | |
parent | a11fa76d13a0b4ad4575774e1fd68bde1f4097cb (diff) |
fix wrapping of net sources
Diffstat (limited to 'src/ui/ui_main.c')
-rw-r--r-- | src/ui/ui_main.c | 6 |
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 ); |