mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 15:42:34 +00:00
- fixed: The check if a line is in range of a bounding box must be exclusive.
Unfortunately I picked the one incorrect version of this check (from A_PainShootSkull) when moving it to an inline function.
This commit is contained in:
parent
25f5e8449a
commit
84d547adfb
1 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue