Oh, this isn't needed anymore
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40584
This commit is contained in:
parent
dbb74a612d
commit
ac9051ab71
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user