Fix VM FOpenFile( FS_READ ) files seeking twice in FS_Seek

This commit is contained in:
Zack Middleton 2013-10-26 22:31:44 -05:00
parent ef9fe17dd5
commit 90c98c90a3

View file

@ -1628,9 +1628,11 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) {
}
if (fsh[f].streamed) {
int r;
fsh[f].streamed = qfalse;
FS_Seek( f, offset, origin );
r = FS_Seek( f, offset, origin );
fsh[f].streamed = qtrue;
return r;
}
if (fsh[f].zipFile == qtrue) {