From f10dd68ca6d917907e65e77fea9b5b34532d166b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 21 Jan 2016 16:21:09 +0200 Subject: [PATCH] Fixed actors intersection check --- src/actor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actor.h b/src/actor.h index 3a474bc6f..a9bd60f75 100644 --- a/src/actor.h +++ b/src/actor.h @@ -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