From 7e452509c25a5089b1621ae072d6edc50dbe0496 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 12 Jan 2014 20:50:23 +0000 Subject: [PATCH] more correct export read for unreal beta, for correctness sake... git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@888 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/snd_umx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quake/snd_umx.c b/Quake/snd_umx.c index 393baec1..80053903 100644 --- a/Quake/snd_umx.c +++ b/Quake/snd_umx.c @@ -183,8 +183,8 @@ static int read_export (fshandle_t *f, const struct upkg_hdr *hdr, return -1; if (hdr->file_version < 40) idx += 8; /* 00 00 00 00 00 00 00 00 */ + if (hdr->file_version < 60) idx += 16; /* 81 00 00 00 00 00 FF FF FF FF FF FF FF FF 00 00 */ get_fci(&buf[idx], &idx); /* skip junk */ - if (hdr->file_version < 60) idx += 16; /* 00 00 00 00 00 FF FF FF FF FF FF FF FF 00 00 00 */ t = get_fci(&buf[idx], &idx); /* type_name */ if (hdr->file_version > 61) idx += 4; /* skip export size */ *objsize = get_fci(&buf[idx], &idx);