From 2ae35a227091633fdd2dd32b7cf1634fff54f2fa Mon Sep 17 00:00:00 2001 From: Acruid Date: Wed, 7 Apr 2021 11:52:43 -0700 Subject: [PATCH] Fix bug in GhostComponent setting the Visibility flags instead of ORing them. --- .../GameObjects/Components/Observer/GhostComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Observer/GhostComponent.cs b/Content.Server/GameObjects/Components/Observer/GhostComponent.cs index bf1e95f91a..74fe2d403e 100644 --- a/Content.Server/GameObjects/Components/Observer/GhostComponent.cs +++ b/Content.Server/GameObjects/Components/Observer/GhostComponent.cs @@ -46,7 +46,7 @@ namespace Content.Server.GameObjects.Components.Observer base.Startup(); // Allow this entity to be seen by other ghosts. - Owner.EnsureComponent().Layer = (int) VisibilityFlags.Ghost; + Owner.EnsureComponent().Layer |= (int) VisibilityFlags.Ghost; // Allows this entity to see other ghosts. Owner.EnsureComponent().VisibilityMask |= (uint) VisibilityFlags.Ghost;