diff --git a/Barotrauma/Source/Map/Entity.cs b/Barotrauma/Source/Map/Entity.cs index 67696b105..af8550373 100644 --- a/Barotrauma/Source/Map/Entity.cs +++ b/Barotrauma/Source/Map/Entity.cs @@ -17,7 +17,7 @@ namespace Barotrauma protected AITarget aiTarget; - public bool Removed + public virtual bool Removed { get; private set; diff --git a/Barotrauma/Source/Map/Submarine.cs b/Barotrauma/Source/Map/Submarine.cs index 4e74bad2c..94e3a0bd6 100644 --- a/Barotrauma/Source/Map/Submarine.cs +++ b/Barotrauma/Source/Map/Submarine.cs @@ -236,6 +236,14 @@ namespace Barotrauma return "Barotrauma.Submarine ("+name+")"; } + public override bool Removed + { + get + { + return !loaded.Contains(this); + } + } + //constructors & generation ---------------------------------------------------- public Submarine(string filePath, string hash = "", bool tryLoad = true) : base(null)