Fixed: Actors with NOINTERACTION shouldn't waste time continuously applying NOBLOCKMAP if it has it already and not moving.

This commit is contained in:
Major Cooke 2016-11-15 11:38:03 -06:00
parent 0111ec451a
commit f2ec266eec

View file

@ -3373,11 +3373,14 @@ void AActor::Tick ()
}
}
UnlinkFromWorld ();
if (!Vel.isZero() || !(flags & MF_NOBLOCKMAP))
{
UnlinkFromWorld();
flags |= MF_NOBLOCKMAP;
SetXYZ(Vec3Offset(Vel));
CheckPortalTransition(false);
LinkToWorld ();
LinkToWorld();
}
}
else
{