MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / T_PreprocessScripts

Function T_PreprocessScripts

src/playsim/fragglescript/t_script.cpp:596–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594//==========================================================================
595
596void T_PreprocessScripts(FLevelLocals *Level)
597{
598 DFraggleThinker *th = Level->FraggleScriptThinker;
599 if (th)
600 {
601 // run the levelscript first
602 // get the other scripts
603
604 // levelscript started by player 0 'superplayer'
605 th->LevelScript->trigger = Level->Players[0]->mo;
606
607 th->LevelScript->Preprocess(Level);
608 th->LevelScript->ParseScript(nullptr, th);
609 }
610}
611
612//==========================================================================
613//

Callers 1

P_SetupLevelFunction · 0.85

Calls 2

PreprocessMethod · 0.80
ParseScriptMethod · 0.80

Tested by

no test coverage detected