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:
Spoike 2004-12-08 07:54:09 +00:00
parent 0322bdd338
commit 3d045be8aa

View file

@ -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