- 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:
Christoph Oelckers 2019-02-02 16:43:11 +01:00
commit 66eb4e5048
29 changed files with 240 additions and 242 deletions

View file

@ -3639,7 +3639,7 @@ do_count:
{
// Again, with decorate replacements
replacemented = true;
PClassActor *newkind = kind->GetReplacement();
PClassActor *newkind = kind->GetReplacement(Level);
if (newkind != kind)
{
kind = newkind;
@ -3727,7 +3727,7 @@ int DLevelScript::DoSpawn (int type, const DVector3 &pos, int tid, DAngle angle,
if (info != NULL)
{
info = info->GetReplacement ();
info = info->GetReplacement (Level);
if ((GetDefaultByType (info)->flags3 & MF3_ISMONSTER) &&
((dmflags & DF_NO_MONSTERS) || (Level->flags2 & LEVEL2_NOMONSTERS)))