From ba238e454bedc2374e32f44b65ff0bcf11642b28 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 4 Mar 2019 00:46:41 +0000 Subject: [PATCH] Work around mvdsv bug where packetloss is misreported. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5425 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_parse.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index ad9ac1e7f..716ea35d6 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -2503,11 +2503,15 @@ void DL_Abort(qdownload_t *dl, enum qdlabort aborttype) case DL_QW: break; case DL_DARKPLACES: + CL_SendClientCommand(true, "stopdownload"); + break; case DL_QWCHUNKS: { - char *serverversion = InfoBuf_ValueForKey(&cl.serverinfo, "*version"); - if (strncmp(serverversion , "MVDSV ", 6)) //don't tell mvdsv to stop, because it has retarded annoying clientprints that are spammy as fuck, and we don't want that. - CL_SendClientCommand(true, "stopdownload"); + //char *serverversion = InfoBuf_ValueForKey(&cl.serverinfo, "*version"); + //if (!strncmp(serverversion , "MVDSV ", 6)) //mvdsv will spam if we use stopdownload. and it'll misreport packetloss if we send nothing. grr. + CL_SendClientCommand(true, "nextdl -1 100 %i", dl->filesequence); + //else + // CL_SendClientCommand(true, "stopdownload"); } break; }