Attachable items aren't automatically attached when loading a sub in edit screen, bunch of new item sprites, Aegir Mark II, client reconnect bugfixes
This commit is contained in:
@@ -421,7 +421,6 @@ namespace Subsurface
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public void AddPlayer(Client client)
|
||||
{
|
||||
GUITextBlock textBlock = new GUITextBlock(
|
||||
@@ -433,6 +432,17 @@ namespace Subsurface
|
||||
textBlock.UserData = client;
|
||||
}
|
||||
|
||||
public void RemovePlayer(int clientID)
|
||||
{
|
||||
GUIComponent child = playerList.children.Find(c =>
|
||||
{
|
||||
Client client = c.UserData as Client;
|
||||
return (client.ID == clientID);
|
||||
});
|
||||
|
||||
if (child != null) playerList.RemoveChild(child);
|
||||
}
|
||||
|
||||
public void RemovePlayer(Client client)
|
||||
{
|
||||
if (client == null) return;
|
||||
|
||||
Reference in New Issue
Block a user