Unstable 1.2.4.0
This commit is contained in:
@@ -576,15 +576,10 @@ namespace Barotrauma
|
||||
base.Remove();
|
||||
|
||||
MapEntityList.Remove(this);
|
||||
|
||||
#if CLIENT
|
||||
Submarine.ForceRemoveFromVisibleEntities(this);
|
||||
if (SelectedList.Contains(this))
|
||||
{
|
||||
SelectedList = SelectedList.Where(e => e != this).ToHashSet();
|
||||
}
|
||||
SelectedList.Remove(this);
|
||||
#endif
|
||||
|
||||
if (aiTarget != null)
|
||||
{
|
||||
aiTarget.Remove();
|
||||
@@ -686,6 +681,9 @@ namespace Barotrauma
|
||||
Move(-relative * 2.0f);
|
||||
}
|
||||
|
||||
public virtual Quad2D GetTransformedQuad()
|
||||
=> Quad2D.FromSubmarineRectangle(rect);
|
||||
|
||||
public static List<MapEntity> LoadAll(Submarine submarine, XElement parentElement, string filePath, int idOffset)
|
||||
{
|
||||
IdRemap idRemap = new IdRemap(parentElement, idOffset);
|
||||
|
||||
Reference in New Issue
Block a user