Improves the RCD (#1609)

* Improves the RCD

* oops

* Unnecessary

* Merge 2 checks

* RCD whitelist and reorganization

* Makes the RCD great again

* Ignored components

* loicense

* Fix missing using
This commit is contained in:
ike709
2020-08-13 12:39:23 -05:00
committed by GitHub
parent 4a8ed41e3a
commit 83a7dfebef
14 changed files with 400 additions and 155 deletions

View File

@@ -83,13 +83,13 @@ namespace Content.Shared.Maps
foreach (var body in query)
{
if (body.CanCollide && body.Hard && (body.CollisionLayer & (int) CollisionGroup.Impassable) != 0)
return false;
return true;
if (filterMobs && (body.CollisionLayer & (int) CollisionGroup.MobMask) != 0)
return false;
return true;
}
return true;
return false;
}
/// <summary>