From 206244b605229956b7c871a70cae7405d61abc06 Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 7 Mar 2014 22:17:12 +0000 Subject: [PATCH] Zip support bugfix from a newer kplib git-svn-id: https://svn.eduke32.com/eduke32@4365 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/kplib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/kplib.c b/polymer/eduke32/build/src/kplib.c index fb1929d94..0a8f1c0bb 100644 --- a/polymer/eduke32/build/src/kplib.c +++ b/polymer/eduke32/build/src/kplib.c @@ -3060,7 +3060,7 @@ int32_t kzread(void *buffer, int32_t leng) if (kzfs.comptyp == 0) { if (kzfs.pos != kzfs.i) //Seek only when position changes - fseek(kzfs.fil,kzfs.seek0+kzfs.pos,SEEK_SET); + { fseek(kzfs.fil,kzfs.seek0+kzfs.pos,SEEK_SET); kzfs.i = kzfs.pos; } i = min(kzfs.leng-kzfs.pos,leng); fread(buffer,i,1,kzfs.fil); kzfs.i += i; //kzfs.i is a local copy of ftell(kzfs.fil);