From fd2d457e6b3d866c85eef4687dc697499a26f96f Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Wed, 25 Oct 2023 21:37:38 +0200 Subject: [PATCH] Clean up stuff for old versions --- .../Net/Manager/CompatibilityManager.cs | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/Impostor.Server/Net/Manager/CompatibilityManager.cs b/src/Impostor.Server/Net/Manager/CompatibilityManager.cs index ab05f13..d3c7ba5 100644 --- a/src/Impostor.Server/Net/Manager/CompatibilityManager.cs +++ b/src/Impostor.Server/Net/Manager/CompatibilityManager.cs @@ -159,21 +159,14 @@ internal class CompatibilityManager : ICompatibilityManager _supportMap.Add(gameVersion, compatibilityGroup); - // We special case the host-only 2023.7.11 here - // Ideally it should never have existed so remove once 2023.7.11 is unsupported TODO - var includeInSupportRange = gameVersion != new GameVersion(2222, 0, 0); - - if (includeInSupportRange) + if (gameVersion < _lowestVersionSupported) { - if (gameVersion < _lowestVersionSupported) - { - _lowestVersionSupported = gameVersion; - } + _lowestVersionSupported = gameVersion; + } - if (gameVersion > _highestVersionSupported) - { - _highestVersionSupported = gameVersion; - } + if (gameVersion > _highestVersionSupported) + { + _highestVersionSupported = gameVersion; } } -- 2.39.5