Fixed submarine positions not being sent

This commit is contained in:
Joonas Rikkonen
2017-06-29 00:17:21 +03:00
parent 0998cdbe01
commit d6228500f4
2 changed files with 9 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ namespace Barotrauma
protected AITarget aiTarget;
public bool Removed
public virtual bool Removed
{
get;
private set;

View File

@@ -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)