Revert "- add argument for EventHandler.Find() which allows searching by parent class (default false)"
This reverts commitabdacad8d3. Revert "- missed one" This reverts commit03123b96de.
This commit is contained in:
parent
2ee07d2df6
commit
53ffd97822
2 changed files with 2 additions and 12 deletions
|
|
@ -1699,14 +1699,9 @@ DEFINE_ACTION_FUNCTION(DEventHandler, Find)
|
|||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_CLASS(t, DStaticEventHandler);
|
||||
PARAM_BOOL(subclass);
|
||||
for (DStaticEventHandler* handler = currentVMLevel->localEventManager->FirstEventHandler; handler; handler = handler->next)
|
||||
{
|
||||
if (handler->GetClass() == t) // check precise class
|
||||
ACTION_RETURN_OBJECT(handler);
|
||||
else if (subclass && handler->IsKindOf(t));
|
||||
ACTION_RETURN_OBJECT(handler);
|
||||
}
|
||||
ACTION_RETURN_OBJECT(nullptr);
|
||||
}
|
||||
|
||||
|
|
@ -1715,14 +1710,9 @@ DEFINE_ACTION_FUNCTION(DStaticEventHandler, Find)
|
|||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_CLASS(t, DStaticEventHandler);
|
||||
PARAM_BOOL(subclass);
|
||||
for (DStaticEventHandler* handler = staticEventManager.FirstEventHandler; handler; handler = handler->next)
|
||||
{
|
||||
if (handler->GetClass() == t) // check precise class
|
||||
ACTION_RETURN_OBJECT(handler);
|
||||
else if (subclass && handler->IsKindOf(t));
|
||||
ACTION_RETURN_OBJECT(handler);
|
||||
}
|
||||
ACTION_RETURN_OBJECT(nullptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue