Fix bug in GhostComponent setting the Visibility flags instead of ORing them.

This commit is contained in:
Acruid
2021-04-07 11:52:43 -07:00
parent 3102778c93
commit 2ae35a2270

View File

@@ -46,7 +46,7 @@ namespace Content.Server.GameObjects.Components.Observer
base.Startup();
// Allow this entity to be seen by other ghosts.
Owner.EnsureComponent<VisibilityComponent>().Layer = (int) VisibilityFlags.Ghost;
Owner.EnsureComponent<VisibilityComponent>().Layer |= (int) VisibilityFlags.Ghost;
// Allows this entity to see other ghosts.
Owner.EnsureComponent<EyeComponent>().VisibilityMask |= (uint) VisibilityFlags.Ghost;