Fixed bad VisualThinker nodes getting into the render list
Relink on loading instead of serializing since order doesn't matter here.
This commit is contained in:
parent
a2450e1195
commit
672a21f533
2 changed files with 8 additions and 4 deletions
|
|
@ -995,7 +995,6 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
|
|||
("automap", automap)
|
||||
("interpolator", interpolator)
|
||||
("frozenstate", frozenstate)
|
||||
("visualthinkerhead", VisualThinkerHead)
|
||||
("actorbehaviors", ActorBehaviors);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1364,13 +1364,18 @@ void DVisualThinker::Serialize(FSerializer& arc)
|
|||
("lightlevel", LightLevel)
|
||||
("animData", PT.animData)
|
||||
("flags", PT.flags)
|
||||
("visualThinkerFlags", flags)
|
||||
("next", _next)
|
||||
("prev", _prev);
|
||||
("visualThinkerFlags", flags);
|
||||
|
||||
if(arc.isReading())
|
||||
{
|
||||
UpdateSector();
|
||||
_prev = _next = nullptr;
|
||||
if (Level->VisualThinkerHead != nullptr)
|
||||
{
|
||||
Level->VisualThinkerHead->_prev = this;
|
||||
_next = Level->VisualThinkerHead;
|
||||
}
|
||||
Level->VisualThinkerHead = this;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue