]> git.deb.at Git - rhonda/impostor.git/commitdiff
Add note to old game methods
authorminiduikboot <mini@duikbo.at>
Tue, 1 Apr 2025 21:50:17 +0000 (23:50 +0200)
committerminiduikboot <mini@duikbo.at>
Tue, 1 Apr 2025 21:50:17 +0000 (23:50 +0200)
These are no longer used, so warn people who do want to edit them.

I don't foresee these getting removed soon though, as we do want to kick
players on old versions for having an old game version

src/Impostor.Server/Http/GamesController.cs

index 2f08f7bac151e51887d4e86eb2a5b2d2b4269d0b..2f0eecbd198c1eae2087e43bacc7734bdf0a8f55 100644 (file)
@@ -51,6 +51,7 @@ public sealed class GamesController : ControllerBase
     [HttpGet]
     public IActionResult Index(int mapId, GameKeywords lang, int numImpostors, [FromHeader] AuthenticationHeaderValue authorization)
     {
+        // NOTE: this method is no longer used by Among Us 16.0.0 and is only kept for backwards compatibility
         if (authorization.Scheme != "Bearer" || authorization.Parameter == null)
         {
             return BadRequest();
@@ -76,6 +77,7 @@ public sealed class GamesController : ControllerBase
     [HttpPost]
     public IActionResult Post(int gameId)
     {
+        // NOTE: this method is no longer used by Among Us 16.0.0 and is only kept for backwards compatibility
         var code = new GameCode(gameId);
         var game = _gameManager.Find(code);