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:
Spoike 2007-04-11 19:46:55 +00:00
parent 5f04f4b314
commit e6c12cc324

View file

@ -624,7 +624,7 @@ qboolean Net_WriteUpStream(sv_t *qtv)
return false; return false;
} }
qtv->upstreambuffersize -= len; qtv->upstreambuffersize -= len;
memmove(qtv->upstreambuffer + len, qtv->upstreambuffer, qtv->upstreambuffersize); memmove(qtv->upstreambuffer, qtv->upstreambuffer + len, qtv->upstreambuffersize);
} }
return true; return true;
} }
@ -1801,7 +1801,7 @@ void QTV_Run(sv_t *qtv)
switch(qtv->buffer[1]&dem_mask) switch(qtv->buffer[1]&dem_mask)
{ {
case dem_multiple: 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; break;
case dem_single: case dem_single:
case dem_stats: case dem_stats: