experimental fix for amb1586 - team native crash

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402044
This commit is contained in:
Borja Ferrer
2008-04-12 01:35:45 +00:00
parent c42a26bb66
commit a483ec5dc5
7 changed files with 36 additions and 2 deletions
+12
View File
@@ -1369,3 +1369,15 @@ IExtension *CExtensionManager::LoadExternal(IExtensionInterface *pInterface,
return pExt;
}
void CExtensionManager::CallOnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)
{
List<CExtension *>::iterator iter;
for (iter=m_Libs.begin(); iter!=m_Libs.end(); iter++)
{
if (SMINTERFACE_EXTENSIONAPI_VERSION > 3)
{
(*iter)->GetAPI()->OnCoreMapStart(pEdictList, edictCount, clientMax);
}
}
}
+1
View File
@@ -178,6 +178,7 @@ public:
void AddLibrary(IExtension *pSource, const char *library);
bool LibraryExists(const char *library);
void OverrideNatives(IExtension *myself, const sp_nativeinfo_t *natives);
void CallOnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax);
public:
CExtension *GetExtensionFromIdent(IdentityToken_t *ptr);
void Shutdown();