Fixed client error reporting

This commit is contained in:
Joonas Rikkonen
2018-10-17 23:48:00 +03:00
parent 13dc008cb5
commit 9f7fbb0cbe
2 changed files with 10 additions and 2 deletions
@@ -1650,6 +1650,7 @@ namespace Barotrauma.Networking
public void ReportError(ClientNetError error,UInt16 expectedID=0,UInt16 eventID=0,UInt16 entityID=0)
{
NetOutgoingMessage outMsg = client.CreateMessage();
outMsg.Write((byte)ClientPacketHeader.ERROR);
outMsg.Write((byte)error);
switch (error)
{