mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +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,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;
|
||||||
|
|
Loading…
Reference in a new issue