Fixed clients not seeing player names in chat messages when in the lobby

This commit is contained in:
Regalis
2017-03-14 19:52:08 +02:00
parent 4a37dab3ca
commit 94d69ff6e9

View File

@@ -156,8 +156,8 @@ namespace Barotrauma.Networking
msg.Write((byte)Type);
msg.Write(Text);
msg.Write(Sender != null);
if (Sender != null)
msg.Write(Sender != null && c.inGame);
if (Sender != null && c.inGame)
{
msg.Write(Sender.ID);
}