From: AeonLucid Date: Sun, 15 Nov 2020 03:14:28 +0000 (+0100) Subject: Fixes #154 - Used wrong version for serialization X-Git-Tag: v1.2.2~17 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=7bb4d88e7621d119434e1d578d491c0dc82de263;p=rhonda%2Fimpostor.git Fixes #154 - Used wrong version for serialization --- 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 +}