From 2ff186151623166d38aa1fe20292412c577ec190 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 24 Sep 2005 14:50:48 +0000 Subject: [PATCH] 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 --- fteqtv/rcon.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fteqtv/rcon.c b/fteqtv/rcon.c index 7f4689abb..4ba317a8f 100644 --- a/fteqtv/rcon.c +++ b/fteqtv/rcon.c @@ -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";