From 2d33e13283f9beb0952833008cc56f95289364f7 Mon Sep 17 00:00:00 2001 From: Timofey06 Date: Tue, 15 Aug 2023 16:46:41 +0300 Subject: [PATCH] LastOldWorkVersionOfAnimator --- DangerousD/GameCore/Graphics/AnimationBuilder.cs | 2 ++ DangerousD/GameCore/Managers/AppManager.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DangerousD/GameCore/Graphics/AnimationBuilder.cs b/DangerousD/GameCore/Graphics/AnimationBuilder.cs index 8f35b5a..8f169f6 100644 --- a/DangerousD/GameCore/Graphics/AnimationBuilder.cs +++ b/DangerousD/GameCore/Graphics/AnimationBuilder.cs @@ -21,7 +21,9 @@ namespace DangerousD.GameCore.Graphics string json = reader.ReadToEnd(); AnimationContainer animation = JsonConvert.DeserializeObject(json); Animations.Add(animation); + reader.Close(); } + } } } diff --git a/DangerousD/GameCore/Managers/AppManager.cs b/DangerousD/GameCore/Managers/AppManager.cs index cbf0bf6..67a65cf 100644 --- a/DangerousD/GameCore/Managers/AppManager.cs +++ b/DangerousD/GameCore/Managers/AppManager.cs @@ -103,7 +103,7 @@ namespace DangerousD.GameCore LobbyGUI.Draw(_spriteBatch); break; case GameState.Game: - _spriteBatch.Begin(SpriteSortMode.Deferred,null/*,SamplerState.PointClamp*/); + _spriteBatch.Begin(SpriteSortMode.Deferred,null,SamplerState.PointClamp); GameManager.Draw(_spriteBatch); _spriteBatch.End(); break;