Merge pull request #807 from Zumorica/2020-04-10-proper-ghost-hiding

Ghosts now make use of the new "entity visibility" engine functionality
This commit is contained in:
Pieter-Jan Briers
2020-04-12 01:00:42 +02:00
committed by GitHub
3 changed files with 22 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ namespace Content.Client.GameObjects.Components.Observer
private void SetGhostVisibility(bool visibility)
{
// So, for now this is a client-side hack... Please, PLEASE someone make this work server-side.
foreach (var ghost in _componentManager.GetAllComponents(typeof(GhostComponent)))
{
if (ghost.Owner.TryGetComponent(out SpriteComponent component))