From 90c98c90a3768411cf27f0b92734d0e016f9053d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 26 Oct 2013 22:31:44 -0500 Subject: [PATCH] Fix VM FOpenFile( FS_READ ) files seeking twice in FS_Seek --- code/qcommon/files.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 20808f0b..0b13ecdb 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -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) {