Skip to content

Commit

Permalink
- allow defcvars from pwad files
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jan 10, 2025
1 parent c72bad0 commit 71cafec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/d_defcvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ void D_GrabCVarDefaults()

while ((lump = fileSystem.FindLump("DEFCVARS", &lastlump)) != -1)
{
#if 0
// what a silly restriction from gzdoom, thankfully we don't have to adhere to it in vkdoom!
// don't parse from wads
if (lastlump > fileSystem.GetLastEntry(fileSystem.GetMaxIwadNum()))
{
// would rather put this in a modal of some sort, but this will have to do.
Printf(TEXTCOLOR_RED "Cannot load DEFCVARS from a wadfile!\n");
break;
}
#endif

FScanner sc(lump);

Expand Down

0 comments on commit 71cafec

Please sign in to comment.