mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 10:11:11 +00:00
Fixed actors intersection check
This commit is contained in:
parent
65662a9cfa
commit
f10dd68ca6
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