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:
parent
8859acced0
commit
d0085d8e70
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue