Fixed AlienWorm collisions (#740)
parent
0d12dedd90
commit
ac950978a9
|
@ -114,7 +114,8 @@ std::vector<CrashSphere> 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;
|
||||
|
|
Loading…
Reference in New Issue