diff --git a/src/r_defs.h b/src/r_defs.h index d7087412b..fca40e8ef 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -1604,10 +1604,10 @@ inline void AActor::ClearInterpolation() inline bool FBoundingBox::inRange(const line_t *ld) const { - return (!(Left() > ld->bbox[BOXRIGHT] || - Right() < ld->bbox[BOXLEFT] || - Top() < ld->bbox[BOXBOTTOM] || - Bottom() > ld->bbox[BOXTOP])); + return Left() < ld->bbox[BOXRIGHT] && + Right() > ld->bbox[BOXLEFT] && + Top() > ld->bbox[BOXBOTTOM] && + Bottom() < ld->bbox[BOXTOP]; }