Ignored "compressed" lumps when running demo/shareware IWADs.

- The demo hexen.wad has this bit set for some lumps, which made it completely unplayable.
This commit is contained in:
Randy Heit 2015-03-08 17:39:38 -05:00
parent e20164ba46
commit 308a036955

View file

@ -38,6 +38,7 @@
#include "templates.h"
#include "v_text.h"
#include "w_wad.h"
#include "gi.h"
// Console Doom LZSS wrapper.
class FileReaderLZSS : public FileReaderBase
@ -354,7 +355,7 @@ bool FWadFile::Open(bool quiet)
{
uppercopy (Lumps[i].Name, fileinfo[i].Name);
Lumps[i].Name[8] = 0;
Lumps[i].Compressed = (Lumps[i].Name[0] & 0x80) == 0x80;
Lumps[i].Compressed = !(gameinfo.flags & GI_SHAREWARE) && (Lumps[i].Name[0] & 0x80) == 0x80;
Lumps[i].Name[0] &= ~0x80;
Lumps[i].Owner = this;