diff --git a/.envrc b/.envrc index 1d953f4..3550a30 100644 --- a/.envrc +++ b/.envrc @@ -1 +1 @@ -use nix +use flake diff --git a/flake.lock b/flake.lock index 0f7109b..4583957 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1730327045, - "narHash": "sha256-xKel5kd1AbExymxoIfQ7pgcX6hjw9jCgbiBjiUfSVJ8=", + "lastModified": 1731797254, + "narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=", "owner": "nixos", "repo": "nixpkgs", - "rev": "080166c15633801df010977d9d7474b4a6c549d7", + "rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59", "type": "github" }, "original": { diff --git a/tanks-backend/TanksServer/GameLogic/MapService.cs b/tanks-backend/TanksServer/GameLogic/MapService.cs index 56be4ec..a79bd94 100644 --- a/tanks-backend/TanksServer/GameLogic/MapService.cs +++ b/tanks-backend/TanksServer/GameLogic/MapService.cs @@ -7,11 +7,11 @@ namespace TanksServer.GameLogic; internal sealed class MapService { - public const ulong TilesPerRow = 44; - public const ulong TilesPerColumn = 20; - public const ulong TileSize = 8; - public const ulong PixelsPerRow = TilesPerRow * TileSize; - public const ulong PixelsPerColumn = TilesPerColumn * TileSize; + public static readonly ulong TilesPerRow = 44; + public static readonly ulong TilesPerColumn = ServicePointConstants.TileHeight; + public static readonly ulong TileSize = ServicePointConstants.TileSize; + public static readonly ulong PixelsPerRow = TilesPerRow * TileSize; + public static readonly ulong PixelsPerColumn = TilesPerColumn * TileSize; private readonly ConcurrentDictionary _mapPrototypes = new(); private readonly ConcurrentDictionary _mapPreviews = new(); diff --git a/tanks-backend/servicepoint b/tanks-backend/servicepoint index 2345108..93657c9 160000 --- a/tanks-backend/servicepoint +++ b/tanks-backend/servicepoint @@ -1 +1 @@ -Subproject commit 234510842d6676b8e8a7cbabbe8d3373aa8d3e6e +Subproject commit 93657c9f85d021c04270e1f5af573a6cda51f18a