mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
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:
parent
e20164ba46
commit
308a036955
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue