- removed some unnecessary distance checks.

These are the same as the specified max distance and redundant.
This commit is contained in:
Christoph Oelckers 2022-09-25 10:57:46 +02:00
parent aae468e2b2
commit 600648939a
2 changed files with 3 additions and 3 deletions

View file

@ -435,7 +435,7 @@ int DoActorOperate(DSWActor* actor)
neartag(actor->spr.pos.plusZ(z[i]), actor->sector(), actor->spr.angle, near, 64., NT_Lotag | NT_Hitag | NT_NoSpriteCheck);
}
if (near.hitSector != nullptr && near.hitpos.X < 64)
if (near.hitSector != nullptr)
{
if (OperateSector(near.hitSector, false))
{

View file

@ -3041,7 +3041,7 @@ bool ActorTrackDecide(TRACK_POINT* tpoint, DSWActor* actor)
{
neartag(DVector3(actor->spr.pos.XY(), zz), actor->sector(), actor->spr.angle, near, 64., NT_Lotag | NT_Hitag);
if (near.actor() != nullptr && near.hitpos.X < 64)
if (near.actor() != nullptr)
{
if (OperateSprite(near.actor(), false))
{
@ -3055,7 +3055,7 @@ bool ActorTrackDecide(TRACK_POINT* tpoint, DSWActor* actor)
}
}
if (near.hitSector != nullptr && near.hitpos.X < 64)
if (near.hitSector != nullptr)
{
if (OperateSector(near.hitSector, false))
{