From: AeonLucid Date: Sat, 6 Mar 2021 16:07:35 +0000 (+0100) Subject: Fix Impostor.Tools.ServerReplay compilation X-Git-Tag: v1.3.0~13^2~6 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=781ba34e1b363788844072b291c0063ced43e7ad;p=rhonda%2Fimpostor.git Fix Impostor.Tools.ServerReplay compilation --- diff --git a/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs b/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs index 86679fa..7d7ee55 100644 --- a/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs +++ b/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs @@ -11,6 +11,12 @@ namespace Impostor.Api.Net.Messages.C2S writer.EndMessage(); } + /// + /// Deserialize a packet. + /// + /// with 0. + /// The chat type selected in the client of the player. + /// Deserialized . public static GameOptionsData Deserialize(IMessageReader reader, out ChatType chatType) { var gameOptionsData = GameOptionsData.DeserializeCreate(reader); diff --git a/src/Impostor.Tools.ServerReplay/Program.cs b/src/Impostor.Tools.ServerReplay/Program.cs index 1f5e494..c36ed24 100644 --- a/src/Impostor.Tools.ServerReplay/Program.cs +++ b/src/Impostor.Tools.ServerReplay/Program.cs @@ -177,7 +177,7 @@ namespace Impostor.Tools.ServerReplay if (tag == MessageFlags.HostGame) { - GameOptions.Add(clientId, Message00HostGameC2S.Deserialize(message)); + GameOptions.Add(clientId, Message00HostGameC2S.Deserialize(message, out _)); } else if (Connections.TryGetValue(clientId, out var client)) {