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
This commit is contained in:
Spoike 2019-03-04 00:46:41 +00:00
parent 1896a3b46f
commit ba238e454b
1 changed files with 7 additions and 3 deletions

View File

@ -2503,11 +2503,15 @@ void DL_Abort(qdownload_t *dl, enum qdlabort aborttype)
case DL_QW: case DL_QW:
break; break;
case DL_DARKPLACES: case DL_DARKPLACES:
CL_SendClientCommand(true, "stopdownload");
break;
case DL_QWCHUNKS: case DL_QWCHUNKS:
{ {
char *serverversion = InfoBuf_ValueForKey(&cl.serverinfo, "*version"); //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. //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, "stopdownload"); CL_SendClientCommand(true, "nextdl -1 100 %i", dl->filesequence);
//else
// CL_SendClientCommand(true, "stopdownload");
} }
break; break;
} }