mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 13:21:36 +00:00
The crap way
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2728 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0b046e2f5e
commit
a3c5e9068a
1 changed files with 9 additions and 3 deletions
|
@ -174,6 +174,7 @@ static void ParseServerData(sv_t *tv, netmsg_t *m, int to, unsigned int playerma
|
|||
memset(tv->staticsound, 0, sizeof(tv->staticsound));
|
||||
|
||||
memset(tv->players, 0, sizeof(tv->players));
|
||||
memset(tv->entity, 0, sizeof(tv->entity)); //for the baselines
|
||||
|
||||
|
||||
for (i = 0; i < MAX_ENTITY_FRAMES; i++)
|
||||
|
@ -223,6 +224,8 @@ static void ParseStufftext(sv_t *tv, netmsg_t *m, int to, unsigned int mask)
|
|||
QW_SetMenu(tv->controller, MENU_MAIN);
|
||||
tv->serverisproxy = true; //FIXME: Detect this properly on qizmo
|
||||
}
|
||||
else if (!strncmp(text, "//I am a proxy", 14))
|
||||
tv->serverisproxy = true;
|
||||
else if (!strncmp(text, "//set prox_inmenu ", 18))
|
||||
{
|
||||
if (tv->controller)
|
||||
|
@ -266,14 +269,15 @@ static void ParseStufftext(sv_t *tv, netmsg_t *m, int to, unsigned int mask)
|
|||
//copy over the server's serverinfo
|
||||
strncpy(tv->serverinfo, text+16, sizeof(tv->serverinfo)-1);
|
||||
|
||||
Info_ValueForKey(tv->serverinfo, "*QTV", value, sizeof(value));
|
||||
Info_ValueForKey(tv->serverinfo, "*qtv", value, sizeof(value));
|
||||
if (*value)
|
||||
{
|
||||
fromproxy = true;
|
||||
tv->serverisproxy = fromproxy;
|
||||
}
|
||||
else
|
||||
fromproxy = false;
|
||||
|
||||
tv->serverisproxy = fromproxy;
|
||||
|
||||
//add on our extra infos
|
||||
Info_SetValueForStarKey(tv->serverinfo, "*qtv", VERSION, sizeof(tv->serverinfo));
|
||||
Info_SetValueForStarKey(tv->serverinfo, "*z_ext", Z_EXT_STRING, sizeof(tv->serverinfo));
|
||||
|
@ -297,6 +301,8 @@ static void ParseStufftext(sv_t *tv, netmsg_t *m, int to, unsigned int mask)
|
|||
}
|
||||
Info_SetValueForStarKey(tv->serverinfo, "hostname", text, sizeof(tv->serverinfo));
|
||||
|
||||
if (tv->controller && tv->controller->netchan.isnqprotocol == false))
|
||||
SendBufferToViewer(tv->controller, (char*)m->data+m->startpos, m->readpos - m->startpos, true);
|
||||
return;
|
||||
}
|
||||
else if (!strncmp(text, "cmd ", 4))
|
||||
|
|
Loading…
Reference in a new issue