mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
- forbid defcvars from a wadfile
This commit is contained in:
parent
93dfdc1c33
commit
6f24cc29c9
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
|||
#include "vm.h"
|
||||
#include "v_text.h"
|
||||
|
||||
#include "w_wad.h"
|
||||
#include "version.h"
|
||||
|
||||
struct FLatchedValue
|
||||
|
@ -1963,6 +1964,10 @@ void C_GrabCVarDefaults ()
|
|||
|
||||
while ((lump = Wads.FindLump("DEFCVARS", &lastlump)) != -1)
|
||||
{
|
||||
// don't parse from wads
|
||||
if (lastlump > Wads.GetLastLump(Wads.GetIwadNum()))
|
||||
I_FatalError("Cannot load DEFCVARS from a wadfile!\n");
|
||||
|
||||
FScanner sc(lump);
|
||||
|
||||
sc.MustGetString();
|
||||
|
|
Loading…
Reference in a new issue