Merge branch 'master' into new-netcode
Conflicts: Subsurface/Source/GUI/GUIButton.cs Subsurface/Source/GameSession/CrewManager.cs Subsurface/Source/GameSession/GameSession.cs Subsurface/Source/Items/Item.cs Subsurface/Source/Networking/GameServer.cs Subsurface/Source/Screens/MainMenuScreen.cs Subsurface/Source/Screens/ServerListScreen.cs
This commit is contained in:
@@ -250,6 +250,8 @@ namespace Barotrauma
|
|||||||
|
|
||||||
protected virtual bool SelectCrewCharacter(Character character, GUIComponent crewList)
|
protected virtual bool SelectCrewCharacter(Character character, GUIComponent crewList)
|
||||||
{
|
{
|
||||||
|
if (character == null) return false;
|
||||||
|
|
||||||
GUIComponent existingFrame = crewList.Parent.FindChild("selectedcharacter");
|
GUIComponent existingFrame = crewList.Parent.FindChild("selectedcharacter");
|
||||||
if (existingFrame != null) crewList.Parent.RemoveChild(existingFrame);
|
if (existingFrame != null) crewList.Parent.RemoveChild(existingFrame);
|
||||||
|
|
||||||
|
|||||||
@@ -1147,7 +1147,7 @@ namespace Barotrauma.Networking
|
|||||||
client.Shutdown("");
|
client.Shutdown("");
|
||||||
GameMain.NetworkMember = null;
|
GameMain.NetworkMember = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteCharacterInfo(NetOutgoingMessage msg)
|
public void WriteCharacterInfo(NetOutgoingMessage msg)
|
||||||
{
|
{
|
||||||
if (characterInfo == null) return;
|
if (characterInfo == null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user