From d6228500f466f4eae8cc3c019f9fee922c8507cc Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 29 Jun 2017 00:17:21 +0300 Subject: [PATCH] Fixed submarine positions not being sent --- Barotrauma/Source/Map/Entity.cs | 2 +- Barotrauma/Source/Map/Submarine.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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)