Two fixes for two bugs reported by qqshka.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2489 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5f04f4b314
commit
e6c12cc324
1 changed files with 2 additions and 2 deletions
|
@ -624,7 +624,7 @@ qboolean Net_WriteUpStream(sv_t *qtv)
|
|||
return false;
|
||||
}
|
||||
qtv->upstreambuffersize -= len;
|
||||
memmove(qtv->upstreambuffer + len, qtv->upstreambuffer, qtv->upstreambuffersize);
|
||||
memmove(qtv->upstreambuffer, qtv->upstreambuffer + len, qtv->upstreambuffersize);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -1801,7 +1801,7 @@ void QTV_Run(sv_t *qtv)
|
|||
switch(qtv->buffer[1]&dem_mask)
|
||||
{
|
||||
case dem_multiple:
|
||||
ParseMessage(qtv, buffer+lengthofs+4, length, qtv->buffer[1]&dem_mask, (buffer[lengthofs-4]<<0) + (buffer[lengthofs+3]<<8) + (buffer[lengthofs-2]<<16) + (buffer[lengthofs-1]<<24));
|
||||
ParseMessage(qtv, buffer+lengthofs+4, length, qtv->buffer[1]&dem_mask, (buffer[lengthofs-4]<<0) + (buffer[lengthofs-3]<<8) + (buffer[lengthofs-2]<<16) + (buffer[lengthofs-1]<<24));
|
||||
break;
|
||||
case dem_single:
|
||||
case dem_stats:
|
||||
|
|
Loading…
Reference in a new issue