Fixed some more void * problems.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2563 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e1742e3507
commit
a0b26fe44a
2 changed files with 3 additions and 3 deletions
|
@ -138,7 +138,7 @@ void WriteData(netmsg_t *b, const void *data, int length)
|
|||
|
||||
if (b->cursize + length > b->maxsize) //urm, that's just too big. :(
|
||||
return;
|
||||
buf = b->data+b->cursize;
|
||||
buf = (char*)b->data+b->cursize;
|
||||
for (i = 0; i < length; i++)
|
||||
*buf++ = ((unsigned char*)data)[i];
|
||||
b->cursize+=length;
|
||||
|
|
|
@ -1234,7 +1234,7 @@ unsigned char COM_BlockSequenceCRCByte (void *base, int length, int sequence)
|
|||
void SetMoveCRC(sv_t *qtv, netmsg_t *msg)
|
||||
{
|
||||
char *outbyte;
|
||||
outbyte = msg->data + msg->startpos+1;
|
||||
outbyte = (char*)msg->data + msg->startpos+1;
|
||||
|
||||
*outbyte = COM_BlockSequenceCRCByte(
|
||||
outbyte+1, msg->cursize - (msg->startpos+2),
|
||||
|
@ -1311,7 +1311,7 @@ void QTV_ParseQWStream(sv_t *qtv)
|
|||
qtv->timeout = qtv->curtime + UDPTIMEOUT_LENGTH;
|
||||
if (!Netchan_Process(&qtv->netchan, &msg))
|
||||
continue;
|
||||
ParseMessage(qtv, msg.data + msg.readpos, msg.cursize - msg.readpos, dem_all, -1);
|
||||
ParseMessage(qtv, (char*)msg.data + msg.readpos, msg.cursize - msg.readpos, dem_all, -1);
|
||||
|
||||
qtv->oldpackettime = qtv->nextpackettime;
|
||||
qtv->nextpackettime = qtv->parsetime;
|
||||
|
|
Loading…
Reference in a new issue