}
else
{
- /*
- f = log(averagespeed);
- mi = log(mi);
- ma = log(ma);
- */
f = averagespeed;
- mi = mi;
- ma = ma;
f = (f - mi) / (ma - mi) * (m_accelerate.value - 1) + 1;
}
{
compsize = LittleLong(*(frameHead + 8)) - 16;
outsize = LittleLong(*(frameHead + 12));
- if (compsize < 0 || compsize > s->framesize || outsize < 0 || outsize > s->framesize)
+ if (compsize > s->framesize || outsize > s->framesize)
s->error = JAMDECODEERROR_BAD_FRAME_HEADER;
else if (FS_Read(s->file, s->compressed, compsize))
{
else
s->error = DPVSIMPLEDECODEERROR_EOF;
return s->error;
-}
\ No newline at end of file
+}
index *= 4;
f = index - floor(index);
if (index < 1)
- f = f;
+ {
+ // f = f;
+ }
else if (index < 2)
f = 1 - f;
else if (index < 3)
continue;
if (!sfx->total_length)
continue;
- if (sfx->total_length < 0 || sfx->total_length > 1<<30)
+ if (sfx->total_length > 1<<30)
Sys_Error("S_MixToBuffer: sfx corrupt\n");
ltime = 0;