A fix that comes in useful when switching server->demo

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1374 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-25 02:20:43 +00:00
parent 8859acced0
commit d0085d8e70

View file

@ -621,7 +621,7 @@ qboolean Net_ReadStream(sv_t *qtv)
{
if (maxreadable > PREFERED_PROXY_BUFFER-qtv->buffersize)
maxreadable = PREFERED_PROXY_BUFFER-qtv->buffersize;
if (!maxreadable)
if (maxreadable<=0)
return true;
read = fread(buffer, 1, maxreadable, qtv->file);
}