mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
Merge pull request #494 from alexey-lysiuk/intersect_fix
Fixed actors intersection check
This commit is contained in:
commit
eeb2a979e1
1 changed files with 1 additions and 1 deletions
|
@ -881,7 +881,7 @@ public:
|
||||||
bool intersects(AActor *other) const
|
bool intersects(AActor *other) const
|
||||||
{
|
{
|
||||||
fixed_t blockdist = radius + other->radius;
|
fixed_t blockdist = radius + other->radius;
|
||||||
return ( abs(X() - other->Y()) < blockdist && abs(Y() - other->Y()) < blockdist);
|
return ( abs(X() - other->X()) < blockdist && abs(Y() - other->Y()) < blockdist);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 'absolute' is reserved for a linked portal implementation which needs
|
// 'absolute' is reserved for a linked portal implementation which needs
|
||||||
|
|
Loading…
Reference in a new issue