evilspy's fix

This commit is contained in:
Pavol Marko 2005-03-11 16:31:49 +00:00
parent 5e46f64d75
commit a4be1ac635

View File

@ -2606,7 +2606,13 @@ void CFakeMeta::Meta_Attach(PLUG_LOADTIME now, meta_globals_t *pMGlobals, gamedl
// Attach all plugins except core // Attach all plugins except core
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin(); CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
++iter; // Skip core // evilspy:
// using metamod p-extensions?
if(!gpMetaPExtFuncs)
{
++iter; // Skip core
}
for (; iter; ++iter) for (; iter; ++iter)
{ {
(*iter).Attach(now, pMGlobals, pGamedllFuncs); (*iter).Attach(now, pMGlobals, pGamedllFuncs);
@ -2618,7 +2624,12 @@ void CFakeMeta::Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason)
{ {
// Detach all plugins except core // Detach all plugins except core
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin(); CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
++iter; // Skip core // evilspy:
// using metamod p-extensions?
if(!gpMetaPExtFuncs)
{
++iter; // Skip core
}
for (; iter; ++iter) for (; iter; ++iter)
{ {
(*iter).Detach(now, reason); (*iter).Detach(now, reason);