Fixed lobby chat

This commit is contained in:
juanjp600
2016-09-08 09:41:08 -03:00
parent 7c9ae5134c
commit 1b85dc3646
3 changed files with 26 additions and 19 deletions

View File

@@ -57,8 +57,11 @@ namespace Barotrauma.Networking
TextWithSender = string.IsNullOrWhiteSpace(senderName) ? text : senderName + ": " + text;
LastID++;
netStateID = LastID;
if (GameMain.Server != null)
{
LastID++;
netStateID = LastID;
}
}
public static ChatMessage Create(string senderName, string text, ChatMessageType type, Character sender)