mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
Now the cursor will wrap around the server list when you hit the bottom or top. I hope you are happy, stu.
This commit is contained in:
parent
07bbdbfe77
commit
69c97f84bd
1 changed files with 6 additions and 6 deletions
|
@ -1087,16 +1087,12 @@ void M_MultiPlayer_Key (key) {
|
|||
case KP_DOWNARROW:
|
||||
case K_DOWNARROW:
|
||||
S_LocalSound("misc/menu1.wav");
|
||||
if (SL_Get_By_Num(slist,m_multip_cursor+1)) {
|
||||
m_multip_cursor++;
|
||||
}
|
||||
m_multip_cursor++;
|
||||
break;
|
||||
case KP_UPARROW:
|
||||
case K_UPARROW:
|
||||
S_LocalSound("misc/menu1.wav");
|
||||
if (m_multip_cursor > 0) {
|
||||
m_multip_cursor--;
|
||||
}
|
||||
m_multip_cursor--;
|
||||
break;
|
||||
case K_PGUP:
|
||||
S_LocalSound("misc/menu1.wav");
|
||||
|
@ -1169,6 +1165,10 @@ void M_MultiPlayer_Key (key) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
if (m_multip_cursor < 0)
|
||||
m_multip_cursor = SL_Len(slist) - 1;
|
||||
if (m_multip_cursor >= SL_Len(slist))
|
||||
m_multip_cursor = 0;
|
||||
if (m_multip_cursor < m_multip_mins) {
|
||||
m_multip_maxs -= (m_multip_mins - m_multip_cursor);
|
||||
m_multip_mins = m_multip_cursor;
|
||||
|
|
Loading…
Reference in a new issue