From ac9051ab710e394bb68411f2c23040ad95d3838f Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 6 Mar 2007 04:53:14 +0000 Subject: [PATCH] Oh, this isn't needed anymore --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40584 --- core/EventManager.cpp | 2 +- core/EventManager.h | 2 +- core/smn_events.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/EventManager.cpp b/core/EventManager.cpp index 587a20d5..91cde171 100644 --- a/core/EventManager.cpp +++ b/core/EventManager.cpp @@ -301,7 +301,7 @@ EventInfo *EventManager::CreateEvent(IPluginContext *pContext, const char *name) return NULL; } -void EventManager::FireEvent(IPluginContext *pContext, EventInfo *pInfo, int flags, bool bDontBroadcast) +void EventManager::FireEvent(EventInfo *pInfo, int flags, bool bDontBroadcast) { /* Should SourceMod plugins be notified of this event? */ m_NotifyPlugins = (flags & EVENT_PASSTHRU_ALL) ? true : false; diff --git a/core/EventManager.h b/core/EventManager.h index 360a9201..8e91bc86 100644 --- a/core/EventManager.h +++ b/core/EventManager.h @@ -94,7 +94,7 @@ public: EventHookError HookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post); EventHookError UnhookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post); EventInfo *CreateEvent(IPluginContext *pContext, const char *name); - void FireEvent(IPluginContext *pContext, EventInfo *pInfo, int flags=0, bool bDontBroadcast=false); + void FireEvent(EventInfo *pInfo, int flags=0, bool bDontBroadcast=false); private: // IGameEventManager2 hooks bool OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast); bool OnFireEvent_Post(IGameEvent *pEvent, bool bDontBroadcast); diff --git a/core/smn_events.cpp b/core/smn_events.cpp index 7e8814e9..cc35a804 100644 --- a/core/smn_events.cpp +++ b/core/smn_events.cpp @@ -98,7 +98,7 @@ static cell_t sm_FireEvent(IPluginContext *pContext, const cell_t *params) return pContext->ThrowNativeError("Game event \"%s\" could not be fired because it was not created by this plugin", pInfo->pEvent->GetName()); } - g_EventManager.FireEvent(pContext, pInfo, params[2], params[3] ? true : false); + g_EventManager.FireEvent(pInfo, params[2], params[3] ? true : false); /* Free handle on game event */ HandleSecurity sec = {pContext->GetIdentity(), g_pCoreIdent};