mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
s / j keys spectate or join the server. This was requested by shadowalker a while ago.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@588 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0322bdd338
commit
3d045be8aa
1 changed files with 6 additions and 1 deletions
|
@ -766,7 +766,7 @@ void M_SListKey(int key)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (key==K_ENTER)
|
||||
else if (key==K_ENTER || key == 's' || key == 'j')
|
||||
{
|
||||
serverinfo_t *server;
|
||||
if (slist_type == SLISTTYPE_SERVERS || slist_type == SLISTTYPE_FAVORITES)
|
||||
|
@ -781,6 +781,11 @@ void M_SListKey(int key)
|
|||
if (!server)
|
||||
return; //ah. off the end.
|
||||
|
||||
if (key == 's')
|
||||
Cbuf_AddText("spectator 1\n");
|
||||
else if (key == 'j')
|
||||
Cbuf_AddText("spectator 0\n");
|
||||
|
||||
if (server->special & SS_NETQUAKE)
|
||||
Cbuf_AddText(va("nqconnect %s\n", NET_AdrToString(server->adr)), RESTRICT_LOCAL);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue