Merge pull request #494 from alexey-lysiuk/intersect_fix

Fixed actors intersection check
This commit is contained in:
coelckers 2016-01-21 15:26:00 +01:00
commit eeb2a979e1

View file

@ -881,7 +881,7 @@ public:
bool intersects(AActor *other) const
{
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