From ac950978a9042b73533694a389e5723400283282 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Thu, 7 Apr 2016 20:30:25 +0200 Subject: [PATCH] Fixed AlienWorm collisions (#740) --- src/object/object.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/object/object.cpp b/src/object/object.cpp index 44466012..6685dd3d 100644 --- a/src/object/object.cpp +++ b/src/object/object.cpp @@ -114,7 +114,8 @@ std::vector CObject::GetAllCrashSpheres() bool CObject::CanCollideWith(CObject* other) { ObjectType otherType = other->GetType(); - if (m_type == OBJECT_WORM) return otherType == OBJECT_WORM; + if (m_type == OBJECT_WORM) return false; + if (otherType == OBJECT_WORM) return false; if (m_type == OBJECT_MOTHER) { if (otherType == OBJECT_ANT) return false;