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,12 +3373,15 @@ void AActor::Tick ()
} }
} }
if (!Vel.isZero() || !(flags & MF_NOBLOCKMAP))
{
UnlinkFromWorld(); UnlinkFromWorld();
flags |= MF_NOBLOCKMAP; flags |= MF_NOBLOCKMAP;
SetXYZ(Vec3Offset(Vel)); SetXYZ(Vec3Offset(Vel));
CheckPortalTransition(false); CheckPortalTransition(false);
LinkToWorld(); LinkToWorld();
} }
}
else else
{ {
AInventory * item = Inventory; AInventory * item = Inventory;