Annother few gcc warnings bite the dust.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@219 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0d9f13a32e
commit
f9927aac27
1 changed files with 4 additions and 4 deletions
|
@ -319,7 +319,7 @@ void SV_MVDWriteToDisk(int type, int to, float time)
|
|||
int size;
|
||||
sizebuf_t msg;
|
||||
|
||||
(qbyte*)p = demo.dbuf->data;
|
||||
p = (header_t *)demo.dbuf->data;
|
||||
demo.dbuf->h = NULL;
|
||||
|
||||
oldm = demo.dbuf->bufsize;
|
||||
|
@ -350,7 +350,7 @@ void SV_MVDWriteToDisk(int type, int to, float time)
|
|||
demobuffer->start += size + header;
|
||||
}
|
||||
// move along
|
||||
(qbyte*)p = p->data + size;
|
||||
p = (header_t *)(p->data + size);
|
||||
}
|
||||
|
||||
if (demobuffer->start == demobuffer->last) {
|
||||
|
@ -378,7 +378,7 @@ static void MVDSetBuf(qbyte type, int to)
|
|||
header_t *p;
|
||||
int pos = 0;
|
||||
|
||||
(qbyte*)p = demo.dbuf->data;
|
||||
p = (header_t *)demo.dbuf->data;
|
||||
|
||||
while (pos < demo.dbuf->bufsize)
|
||||
{
|
||||
|
@ -391,7 +391,7 @@ static void MVDSetBuf(qbyte type, int to)
|
|||
return;
|
||||
}
|
||||
|
||||
(qbyte*)p = p->data + p->size;
|
||||
p = (header_t *)(p->data + p->size);
|
||||
}
|
||||
// type&&to not exist in the buf, so add it
|
||||
|
||||
|
|
Loading…
Reference in a new issue