Fix VM FOpenFile( FS_READ ) files seeking twice in FS_Seek
This commit is contained in:
parent
ef9fe17dd5
commit
90c98c90a3
1 changed files with 3 additions and 1 deletions
|
@ -1628,9 +1628,11 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsh[f].streamed) {
|
if (fsh[f].streamed) {
|
||||||
|
int r;
|
||||||
fsh[f].streamed = qfalse;
|
fsh[f].streamed = qfalse;
|
||||||
FS_Seek( f, offset, origin );
|
r = FS_Seek( f, offset, origin );
|
||||||
fsh[f].streamed = qtrue;
|
fsh[f].streamed = qtrue;
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsh[f].zipFile == qtrue) {
|
if (fsh[f].zipFile == qtrue) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue