From c06526f24b6d85236f9082a408646a4d8faa8c48 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Mon, 21 Oct 2019 22:55:43 +0100 Subject: [PATCH] Fix typo in RefreshBackground(), for viewable area resizing --- source/exhumed/src/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/exhumed/src/view.cpp b/source/exhumed/src/view.cpp index 4db850a33..ee0c25f36 100644 --- a/source/exhumed/src/view.cpp +++ b/source/exhumed/src/view.cpp @@ -203,9 +203,9 @@ void RefreshBackground() MaskStatus(); - for (int y = 0; y < xdim; y += tileY) + for (int y = 0; y < ydim; y += tileY) { - for (int x = 0; x < ydim; x += tileX) + for (int x = 0; x < xdim; x += tileX) { overwritesprite(x, y, nBackgroundPic + nTileOffset, -32, 0, kPalNormal); if (nTileOffset == 0) {