0.15.21.0

This commit is contained in:
Markus Isberg
2021-12-16 01:05:43 +09:00
parent 617d9ede88
commit 7d43cb1e91
74 changed files with 487 additions and 541 deletions
@@ -648,12 +648,18 @@ namespace Barotrauma
if (linkedTo.Contains(otherEntity))
{
linkedTo.Remove(otherEntity);
if (otherEntity.linkedTo != null && otherEntity.linkedTo.Contains(this)) otherEntity.linkedTo.Remove(this);
if (otherEntity.linkedTo != null && otherEntity.linkedTo.Contains(this))
{
otherEntity.linkedTo.Remove(this);
}
}
else
{
linkedTo.Add(otherEntity);
if (otherEntity.Linkable && otherEntity.linkedTo != null) otherEntity.linkedTo.Add(this);
if (otherEntity.Linkable && otherEntity.linkedTo != null)
{
otherEntity.linkedTo.Add(this);
}
}
}
}