From 448da8bd9e328ee986bdb95a0b4d931284bd8785 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Fri, 11 Mar 2005 19:16:00 +0000 Subject: [PATCH] One more core skipping thingy --- amxmodx/fakemeta.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/amxmodx/fakemeta.cpp b/amxmodx/fakemeta.cpp index 3f415d54..bb7706e7 100755 --- a/amxmodx/fakemeta.cpp +++ b/amxmodx/fakemeta.cpp @@ -2592,7 +2592,12 @@ void CFakeMeta::Meta_Query(mutil_funcs_t *pMetaUtilFuncs) // Query all plugins except core CList::iterator iter = m_Plugins.begin(); - ++iter; // Skip core + + // evilspy: + // using metamod p-extensions? + if(!gpMetaPExtFuncs) + ++iter; // Skip core + for (; iter; ++iter) { (*iter).Query(pMetaUtilFuncs); @@ -2609,9 +2614,7 @@ void CFakeMeta::Meta_Attach(PLUG_LOADTIME now, meta_globals_t *pMGlobals, gamedl // evilspy: // using metamod p-extensions? if(!gpMetaPExtFuncs) - { ++iter; // Skip core - } for (; iter; ++iter) { @@ -2627,9 +2630,8 @@ void CFakeMeta::Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason) // evilspy: // using metamod p-extensions? if(!gpMetaPExtFuncs) - { ++iter; // Skip core - } + for (; iter; ++iter) { (*iter).Detach(now, reason);