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:
parent
61df13306f
commit
c87dc5ccad
6 changed files with 42 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue