- allow defcvars from pwad files

This commit is contained in:
Rachael Alexanderson 2025-01-10 05:21:53 -05:00
commit 71cafec63b
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -45,6 +45,8 @@ 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()))
{
@ -52,6 +54,7 @@ void D_GrabCVarDefaults()
Printf(TEXTCOLOR_RED "Cannot load DEFCVARS from a wadfile!\n");
break;
}
#endif
FScanner sc(lump);