mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Fixed: Actors with NOINTERACTION shouldn't waste time continuously applying NOBLOCKMAP if it has it already and not moving.
This commit is contained in:
parent
0111ec451a
commit
f2ec266eec
1 changed files with 8 additions and 5 deletions
|
@ -3373,11 +3373,14 @@ void AActor::Tick ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UnlinkFromWorld ();
|
if (!Vel.isZero() || !(flags & MF_NOBLOCKMAP))
|
||||||
flags |= MF_NOBLOCKMAP;
|
{
|
||||||
SetXYZ(Vec3Offset(Vel));
|
UnlinkFromWorld();
|
||||||
CheckPortalTransition(false);
|
flags |= MF_NOBLOCKMAP;
|
||||||
LinkToWorld ();
|
SetXYZ(Vec3Offset(Vel));
|
||||||
|
CheckPortalTransition(false);
|
||||||
|
LinkToWorld();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue