mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
mol#1 fixed. .disconnect lets the server know, also removed the annoying debug spam
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2652 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0ae105907d
commit
1bdbb0d8b4
2 changed files with 7 additions and 3 deletions
|
@ -4512,9 +4512,6 @@ void SendViewerPackets(cluster_t *cluster, viewer_t *v)
|
|||
WriteString(&m, v->server->status);
|
||||
}
|
||||
|
||||
//printf("in %i, out %i\n", v->netchan.incoming_sequence, v->netchan.outgoing_sequence);
|
||||
//if (v->netchan.incoming_sequence != v->netchan.outgoing_sequence)
|
||||
printf("%s: in %i, out %i\n", v->name, v->netchan.incoming_sequence, v->netchan.outgoing_sequence);
|
||||
if (v->server && v->server->controller == v)
|
||||
{
|
||||
int saved;
|
||||
|
|
|
@ -1041,6 +1041,13 @@ void QTV_Shutdown(sv_t *qtv)
|
|||
|
||||
if (qtv->sourcesock != INVALID_SOCKET)
|
||||
{
|
||||
if (qtv->usequakeworldprotocols)
|
||||
{
|
||||
char dying[] = {clc_stringcmd, 'd', 'r', 'o', 'p', '\0'};
|
||||
Netchan_Transmit (qtv->cluster, &qtv->netchan, sizeof(dying), dying);
|
||||
Netchan_Transmit (qtv->cluster, &qtv->netchan, sizeof(dying), dying);
|
||||
Netchan_Transmit (qtv->cluster, &qtv->netchan, sizeof(dying), dying);
|
||||
}
|
||||
closesocket(qtv->sourcesock);
|
||||
qtv->sourcesock = INVALID_SOCKET;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue