Fixed a bunch of sprites not being removed
This commit is contained in:
@@ -118,12 +118,7 @@ namespace Barotrauma.Items.Components
|
||||
loadedConnections[i].wireId.CopyTo(Connections[i].wireId, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Remove()
|
||||
{
|
||||
base.Remove();
|
||||
}
|
||||
|
||||
|
||||
public override bool FillNetworkData(Networking.NetworkEventType type, Lidgren.Network.NetBuffer message)
|
||||
{
|
||||
foreach (Connection c in Connections)
|
||||
|
||||
@@ -145,9 +145,9 @@ namespace Barotrauma.Items.Components
|
||||
//GUI.DrawLine(spriteBatch, center - Vector2.One * range, center + Vector2.One * range, lightColor);
|
||||
}
|
||||
|
||||
public override void Remove()
|
||||
protected override void RemoveComponentSpecific()
|
||||
{
|
||||
base.Remove();
|
||||
base.RemoveComponentSpecific();
|
||||
|
||||
light.Remove();
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
public override void Remove()
|
||||
protected override void RemoveComponentSpecific()
|
||||
{
|
||||
base.Remove();
|
||||
base.RemoveComponentSpecific();
|
||||
|
||||
list.Remove(this);
|
||||
}
|
||||
|
||||
@@ -461,11 +461,11 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
}
|
||||
|
||||
public override void Remove()
|
||||
protected override void RemoveComponentSpecific()
|
||||
{
|
||||
ClearConnections();
|
||||
|
||||
base.Remove();
|
||||
base.RemoveComponentSpecific();
|
||||
}
|
||||
|
||||
public override bool FillNetworkData(Networking.NetworkEventType type, Lidgren.Network.NetBuffer message)
|
||||
|
||||
Reference in New Issue
Block a user