- replaced all TThinkerIterators except one that probably won't be relevant anymore as things progress.

This commit is contained in:
Christoph Oelckers 2019-01-30 00:27:05 +01:00
commit 78b7b64237
10 changed files with 30 additions and 28 deletions

View file

@ -2213,6 +2213,7 @@ bool FBehavior::Init(FLevelLocals *Level, int lumpnum, FileReader * fr, int len)
uint8_t *object;
int i;
this->Level = Level;
LumpNum = lumpnum;
// Now that everything is set up, record this module as being among the loaded modules.
@ -3270,7 +3271,7 @@ void FBehavior::StartTypedScripts (uint16_t type, AActor *activator, bool always
ptr = &Scripts[i];
if (ptr->Type == type)
{
DLevelScript *runningScript = P_GetScriptGoing (&level, activator, NULL, ptr->Number,
DLevelScript *runningScript = P_GetScriptGoing (Level, activator, NULL, ptr->Number,
ptr, this, &arg1, 1, always ? ACS_ALWAYS : 0);
if (nullptr != runningScript && runNow)
{