Allow Plugin_Changed return on event PreHooks to not block. (#503)

This avoids issues from confusion that users have, returning Plugin_Changed
after altering event data, when Plugin_Changed isn't required and wasn't supported
in that scenario, and instead acted like Plugin_Handled.
This commit is contained in:
Nicholas Hastings 2016-04-26 23:18:00 -04:00
parent 29a5daab98
commit b5876bdd33

View File

@ -424,7 +424,7 @@ bool EventManager::OnFireEvent(IGameEvent *pEvent, bool bDontBroadcast)
m_EventCopies.push(gameevents->DuplicateEvent(pEvent));
}
if (res)
if (res >= Pl_Handled)
{
gameevents->FreeEvent(pEvent);
RETURN_META_VALUE(MRES_SUPERCEDE, false);