mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Zip support bugfix from a newer kplib
git-svn-id: https://svn.eduke32.com/eduke32@4365 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
73b3199b7c
commit
206244b605
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue