Send a ping when first setting the master server like qw servers do.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1364 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ab44804260
commit
2ff1861516
1 changed files with 5 additions and 0 deletions
|
@ -345,8 +345,13 @@ char *Rcon_Command(sv_t *qtv, char *command, char *buffer, int sizeofbuffer, qbo
|
|||
}
|
||||
else if (!strcmp(arg[1], "master"))
|
||||
{
|
||||
netadr_t addr;
|
||||
|
||||
strncpy(qtv->master, arg[2], sizeof(qtv->master)-1);
|
||||
qtv->mastersendtime = qtv->curtime;
|
||||
|
||||
if (NET_StringToAddr(arg[1], &addr))
|
||||
NET_SendPacket (qtv->qwdsocket, 1, "k", addr);
|
||||
}
|
||||
else
|
||||
return "Option not recognised\n";
|
||||
|
|
Loading…
Reference in a new issue