- separation of static and map-local event handlers into separate lists.
Having everything lumped together made this a maintenance hassle because it affected how the level has to be stored. This hasn't been tested yet, so it may not work as intended!
This commit is contained in:
parent
d005e0b483
commit
66eb4e5048
29 changed files with 240 additions and 242 deletions
|
|
@ -1000,7 +1000,8 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
|
|||
// [ZZ] serialize health groups
|
||||
P_SerializeHealthGroups(this, arc);
|
||||
// [ZZ] serialize events
|
||||
eventManager.SerializeEvents(arc);
|
||||
arc("firstevent", localEventManager->FirstEventHandler)
|
||||
("lastevent", localEventManager->LastEventHandler);
|
||||
Thinkers.SerializeThinkers(arc, hubload);
|
||||
arc("polyobjs", Polyobjects);
|
||||
SerializeSubsectors(arc, "subsectors");
|
||||
|
|
@ -1024,6 +1025,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
|
|||
FWeaponSlots::SetupWeaponSlots(Players[i]->mo);
|
||||
}
|
||||
}
|
||||
localEventManager->SetOwnerForHandlers(); // This cannot be automated.
|
||||
RecreateAllAttachedLights();
|
||||
InitPortalGroups(this);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue