mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Made global handlers (from GameInfo) implicitly transient, because these never get serialized anyway.
This commit is contained in:
parent
3c1cecfa2b
commit
9a8a93fe51
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,8 @@ bool E_RegisterHandler(DStaticEventHandler* handler)
|
|||
if (handler->IsStatic())
|
||||
{
|
||||
handler->ObjectFlags |= OF_Fixed;
|
||||
if (!handler->isMapScope) // global (GameInfo) handlers are not serialized.
|
||||
handler->ObjectFlags |= OF_Transient;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -42,7 +44,7 @@ bool E_UnregisterHandler(DStaticEventHandler* handler)
|
|||
E_FirstEventHandler = handler->next;
|
||||
if (handler->IsStatic())
|
||||
{
|
||||
handler->ObjectFlags &= ~OF_Fixed;
|
||||
handler->ObjectFlags &= ~(OF_Fixed|OF_Transient);
|
||||
handler->Destroy();
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue