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
1 changed files with 8 additions and 5 deletions

View File

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