From fef6ebde0b81e98d7f70977c9695681005ee9098 Mon Sep 17 00:00:00 2001 From: kaczy Date: Sun, 11 Feb 2024 16:07:45 +0100 Subject: [PATCH] Fix off by one error in requested blocks range --- CentrED/Map/MapManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CentrED/Map/MapManager.cs b/CentrED/Map/MapManager.cs index cfdd7fa..5006078 100644 --- a/CentrED/Map/MapManager.cs +++ b/CentrED/Map/MapManager.cs @@ -557,9 +557,9 @@ public void Update(GameTime gameTime, bool isActive, bool processMouse, bool pro if (ViewRange != newViewRange) { List requested = new List(); - for (var x = newViewRange.Left / 8; x < newViewRange.Right / 8; x++) + for (var x = newViewRange.Left / 8; x <= newViewRange.Right / 8; x++) { - for (var y = newViewRange.Top / 8; y < newViewRange.Bottom / 8; y++) + for (var y = newViewRange.Top / 8; y <= newViewRange.Bottom / 8; y++) { requested.Add(new BlockCoords((ushort)x, (ushort)y)); }