- use a local pointer to the current level in FraggleScript parser.
Just to test a few things.
This commit is contained in:
parent
86551e53df
commit
95995e4aa3
4 changed files with 38 additions and 35 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#include "t_script.h"
|
||||
#include "w_wad.h"
|
||||
#include "serializer.h"
|
||||
#include "g_levellocals.h"
|
||||
|
||||
|
||||
//==========================================================================
|
||||
|
|
@ -338,7 +339,7 @@ void DFsScript::DryRunScript()
|
|||
char *rover = data;
|
||||
|
||||
// allocate space for the tokens
|
||||
FParser parse(this);
|
||||
FParser parse(&level, this);
|
||||
try
|
||||
{
|
||||
while(rover < end && *rover)
|
||||
|
|
@ -428,7 +429,7 @@ void DFsScript::ParseInclude(char *lumpname)
|
|||
ProcessFindChar(lump, 0);
|
||||
|
||||
// now parse the lump
|
||||
FParser parse(this);
|
||||
FParser parse(&level, this);
|
||||
parse.Run(lump, lump, lump+lumplen);
|
||||
|
||||
// free the lump
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue