From 7bb4d88e7621d119434e1d578d491c0dc82de263 Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Sun, 15 Nov 2020 04:14:28 +0100 Subject: [PATCH] Fixes #154 - Used wrong version for serialization --- src/Impostor.Api/Innersloth/GameOptionsData.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Impostor.Api/Innersloth/GameOptionsData.cs b/src/Impostor.Api/Innersloth/GameOptionsData.cs index 7be6735..d18efd8 100644 --- a/src/Impostor.Api/Innersloth/GameOptionsData.cs +++ b/src/Impostor.Api/Innersloth/GameOptionsData.cs @@ -9,7 +9,7 @@ namespace Impostor.Api.Innersloth /// /// The latest major version of the game client. /// - public const int LatestVersion = 2; + public const int LatestVersion = 4; /// /// Gets or sets host's version of the game. @@ -33,7 +33,7 @@ namespace Impostor.Api.Innersloth /// Skeld = 0, MiraHQ = 1, Polus = 2. /// internal byte MapId { get; set; } - + /// /// Gets or sets the map selected for this lobby /// @@ -192,13 +192,13 @@ namespace Impostor.Api.Innersloth writer.Write((bool)VisualTasks); } - if (Version > 3) + if (version > 3) { writer.Write((bool)AnonymousVotes); writer.Write((byte)TaskBarUpdate); } - if (Version > 4) + if (version > 4) { throw new ImpostorException($"Unknown GameOptionsData version {Version}."); } @@ -258,4 +258,4 @@ namespace Impostor.Api.Innersloth } } } -} \ No newline at end of file +} -- 2.39.5