- 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
|
|
@ -3615,7 +3615,7 @@ void FParser::SF_ThingCount(void)
|
|||
pClass=T_GetMobjType(t_argv[0]);
|
||||
if (!pClass) return;
|
||||
// If we want to count map items we must consider actor replacement
|
||||
pClass = pClass->GetReplacement();
|
||||
pClass = pClass->GetReplacement(Level);
|
||||
|
||||
again:
|
||||
auto it = Level->GetThinkerIterator<AActor>();
|
||||
|
|
@ -3644,7 +3644,7 @@ void FParser::SF_ThingCount(void)
|
|||
{
|
||||
// Again, with decorate replacements
|
||||
replacemented = true;
|
||||
PClassActor *newkind = pClass->GetReplacement();
|
||||
PClassActor *newkind = pClass->GetReplacement(Level);
|
||||
if (newkind != pClass)
|
||||
{
|
||||
pClass = newkind;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue