core/sourcemod.cpp
changeset 673 fc1d50579d06
parent 665 74fa35a4c27c
child 688 0b99367c7a5a
     1.1 --- a/core/sourcemod.cpp	Thu Apr 05 11:02:22 2007 +0000
     1.2 +++ b/core/sourcemod.cpp	Sat Apr 07 03:58:20 2007 +0000
     1.3 @@ -233,20 +233,25 @@
     1.4  	g_LastTime = 0.0f;
     1.5  	g_LastAuthCheck = 0.0f;
     1.6  
     1.7 -	g_Logger.MapChange(pMapName);
     1.8 -	g_Timers.MapChange();
     1.9 -
    1.10 -	/* Refresh language stuff */
    1.11 -	char path[PLATFORM_MAX_PATH];
    1.12 -	BuildPath(Path_SM, path, sizeof(path), "configs/languages.cfg");
    1.13 -	g_Translator.RebuildLanguageDatabase(path);
    1.14 +	/* Notify! */
    1.15 +	SMGlobalClass *pBase = SMGlobalClass::head;
    1.16 +	while (pBase)
    1.17 +	{
    1.18 +		pBase->OnSourceModLevelChange(pMapName);
    1.19 +		pBase = pBase->m_pGlobalClassNext;
    1.20 +	}
    1.21  
    1.22  	DoGlobalPluginLoads();
    1.23  
    1.24  	m_IsMapLoading = false;
    1.25  
    1.26 -	g_Admins.DumpAdminCache(AdminCache_Overrides, true);
    1.27 -	g_Admins.DumpAdminCache(AdminCache_Groups, true);
    1.28 +	/* Notify! */
    1.29 +	pBase = SMGlobalClass::head;
    1.30 +	while (pBase)
    1.31 +	{
    1.32 +		pBase->OnSourceModPluginsLoaded();
    1.33 +		pBase = pBase->m_pGlobalClassNext;
    1.34 +	}
    1.35  
    1.36  	if (!g_pOnGameFrame)
    1.37  	{