Oh, this isn't needed anymore

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40584
This commit is contained in:
Scott Ehlert 2007-03-06 04:53:14 +00:00
parent dbb74a612d
commit ac9051ab71
3 changed files with 3 additions and 3 deletions

View File

@ -301,7 +301,7 @@ EventInfo *EventManager::CreateEvent(IPluginContext *pContext, const char *name)
return NULL; 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? */ /* Should SourceMod plugins be notified of this event? */
m_NotifyPlugins = (flags & EVENT_PASSTHRU_ALL) ? true : false; m_NotifyPlugins = (flags & EVENT_PASSTHRU_ALL) ? true : false;

View File

@ -94,7 +94,7 @@ public:
EventHookError HookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post); EventHookError HookEvent(const char *name, IPluginFunction *pFunction, EventHookMode mode=EventHookMode_Post);
EventHookError UnhookEvent(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); 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 private: // IGameEventManager2 hooks
bool OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast); bool OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast);
bool OnFireEvent_Post(IGameEvent *pEvent, bool bDontBroadcast); bool OnFireEvent_Post(IGameEvent *pEvent, bool bDontBroadcast);

View File

@ -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()); 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 */ /* Free handle on game event */
HandleSecurity sec = {pContext->GetIdentity(), g_pCoreIdent}; HandleSecurity sec = {pContext->GetIdentity(), g_pCoreIdent};