- eliminated the two global FraggleScript variables by moving them into DFraggleThinker.
This commit is contained in:
parent
496dd4ee68
commit
f31b1b92c9
9 changed files with 27 additions and 69 deletions
|
|
@ -4046,16 +4046,16 @@ void FParser::SF_ScriptRunning()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
static int zoom=1; // Dummy - no longer needed!
|
||||
|
||||
void init_functions(void)
|
||||
void DFraggleThinker::InitFunctions()
|
||||
{
|
||||
cycle_t clock;
|
||||
|
||||
for(unsigned i=0;i<countof(ActorNames_init);i++)
|
||||
{
|
||||
ActorTypes[i]=PClass::FindActor(ActorNames_init[i]);
|
||||
}
|
||||
|
||||
DFsScript * gscr = global_script;
|
||||
DFsScript * gscr = GlobalScript;
|
||||
|
||||
// add all the functions
|
||||
gscr->NewVariable("consoleplayer", svt_pInt)->value.pI = &consoleplayer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue