Fixed interpolation points chaining

Ambush flag cannot be used for marking visited points because HandleSpawnFlags() is no longer virtual
See E1M4 from Rise Of The Wool Ball v1.1 as example of broken chain
This commit is contained in:
alexey.lysiuk 2017-06-10 15:50:44 +03:00
parent 3b8570003a
commit 8a300b99e9

View file

@ -45,6 +45,8 @@ class InterpolationPoint : Actor
{ {
InterpolationPoint Next; InterpolationPoint Next;
bool bVisited;
default default
{ {
@ -66,9 +68,9 @@ class InterpolationPoint : Actor
while (me != null) while (me != null)
{ {
if (me.bAmbush) return; if (me.bVisited) return;
me.bAmbush = true; me.bVisited = true;
let iterator = ActorIterator.Create(me.args[3] + 256 * me.args[4], "InterpolationPoint"); let iterator = ActorIterator.Create(me.args[3] + 256 * me.args[4], "InterpolationPoint");
me.Next = InterpolationPoint(iterator.Next ()); me.Next = InterpolationPoint(iterator.Next ());