From 308a036955bc5e9126916377dca6d020857ba6d0 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 8 Mar 2015 17:39:38 -0500 Subject: [PATCH] Ignored "compressed" lumps when running demo/shareware IWADs. - The demo hexen.wad has this bit set for some lumps, which made it completely unplayable. --- src/resourcefiles/file_wad.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resourcefiles/file_wad.cpp b/src/resourcefiles/file_wad.cpp index 55a6f5f06..869e69ca0 100644 --- a/src/resourcefiles/file_wad.cpp +++ b/src/resourcefiles/file_wad.cpp @@ -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;