search players by name in serverbrowser

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4039 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-12-19 02:17:47 +00:00
parent b9d9a9feae
commit 892803e220
6 changed files with 166 additions and 28 deletions
+10
View File
@@ -3439,6 +3439,16 @@ int getpongflags(enet_uint32 ip)
flags |= checkblacklist(ip) ? 1 << PONGFLAG_BLACKLIST : 0;
return flags;
}
void extping_namelist(ucharbuf &p)
{
loopv(clients)
{
if(clients[i]->type == ST_TCPIP && clients[i]->isauthed) sendstring(clients[i]->name, p);
}
sendstring("", p);
}
void extinfo_cnbuf(ucharbuf &p, int cn)
{
if(cn == -1) // add all available player ids