mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- removed some unnecessary distance checks.
These are the same as the specified max distance and redundant.
This commit is contained in:
parent
aae468e2b2
commit
600648939a
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue