Updated VisualThinker render linkage

Now uses its own self-managed linked list with its level tracking the head pointer. Allows for VisualThinkers to be moved to any desired stat instead of being stuck in STAT_VISUALTHINKER.
This commit is contained in:
Boondorl 2025-01-13 12:15:00 -05:00 committed by Rachael Alexanderson
commit c87dc5ccad
6 changed files with 42 additions and 28 deletions

View file

@ -810,11 +810,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DThinker, ChangeStatNum, ChangeStatNum)
PARAM_SELF_PROLOGUE(DThinker);
PARAM_INT(stat);
// do not allow ZScript to reposition thinkers in or out of particle ticking.
if (stat != STAT_VISUALTHINKER && !dynamic_cast<DVisualThinker*>(self))
{
ChangeStatNum(self, stat);
}
ChangeStatNum(self, stat);
return 0;
}