core/sourcemod.cpp
changeset 214 4d97709c9376
parent 213 2bec1ff85d06
child 252 ce166c465bad
     1.1 --- a/core/sourcemod.cpp	Fri Dec 15 13:53:58 2006 +0000
     1.2 +++ b/core/sourcemod.cpp	Fri Dec 15 13:58:22 2006 +0000
     1.3 @@ -129,10 +129,27 @@
     1.4  	/* First initialize the global hooks we need */
     1.5  	SH_ADD_HOOK_MEMFUNC(IServerGameDLL, LevelInit, gamedll, this, &SourceModBase::LevelInit, false);
     1.6  
     1.7 +	m_IsLateLoadInMap = late;
     1.8 +
     1.9 +	/* Notify! */
    1.10 +	SMGlobalClass *pBase = SMGlobalClass::head;
    1.11 +	while (pBase)
    1.12 +	{
    1.13 +		pBase->OnSourceModStartup(m_IsLateLoadInMap);
    1.14 +		pBase = pBase->m_pGlobalClassNext;
    1.15 +	}
    1.16 +
    1.17 +	/* Notify! */
    1.18 +	pBase = SMGlobalClass::head;
    1.19 +	while (pBase)
    1.20 +	{
    1.21 +		pBase->OnSourceModAllInitialized();
    1.22 +		pBase = pBase->m_pGlobalClassNext;
    1.23 +	}
    1.24 +
    1.25  	/* If we're late, automatically load plugins now */
    1.26  	if (late)
    1.27  	{
    1.28 -		m_IsLateLoadInMap = late;
    1.29  		DoGlobalPluginLoads();
    1.30  	}
    1.31  }