mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue