1.1 --- a/core/EventManager.cpp Tue Mar 06 04:50:30 2007 +0000
1.2 +++ b/core/EventManager.cpp Tue Mar 06 04:53:14 2007 +0000
1.3 @@ -301,7 +301,7 @@
1.4 return NULL;
1.5 }
1.6
1.7 -void EventManager::FireEvent(IPluginContext *pContext, EventInfo *pInfo, int flags, bool bDontBroadcast)
1.8 +void EventManager::FireEvent(EventInfo *pInfo, int flags, bool bDontBroadcast)
1.9 {
1.10 /* Should SourceMod plugins be notified of this event? */
1.11 m_NotifyPlugins = (flags & EVENT_PASSTHRU_ALL) ? true : false;
2.1 --- a/core/EventManager.h Tue Mar 06 04:50:30 2007 +0000
2.2 +++ b/core/EventManager.h Tue Mar 06 04:53:14 2007 +0000
2.3 @@ -94,7 +94,7 @@
2.4 EventHookError HookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post);
2.5 EventHookError UnhookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post);
2.6 EventInfo *CreateEvent(IPluginContext *pContext, const char *name);
2.7 - void FireEvent(IPluginContext *pContext, EventInfo *pInfo, int flags=0, bool bDontBroadcast=false);
2.8 + void FireEvent(EventInfo *pInfo, int flags=0, bool bDontBroadcast=false);
2.9 private: // IGameEventManager2 hooks
2.10 bool OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast);
2.11 bool OnFireEvent_Post(IGameEvent *pEvent, bool bDontBroadcast);
3.1 --- a/core/smn_events.cpp Tue Mar 06 04:50:30 2007 +0000
3.2 +++ b/core/smn_events.cpp Tue Mar 06 04:53:14 2007 +0000
3.3 @@ -98,7 +98,7 @@
3.4 return pContext->ThrowNativeError("Game event \"%s\" could not be fired because it was not created by this plugin", pInfo->pEvent->GetName());
3.5 }
3.6
3.7 - g_EventManager.FireEvent(pContext, pInfo, params[2], params[3] ? true : false);
3.8 + g_EventManager.FireEvent(pInfo, params[2], params[3] ? true : false);
3.9
3.10 /* Free handle on game event */
3.11 HandleSecurity sec = {pContext->GetIdentity(), g_pCoreIdent};