From e9dd38ee3592b788cfe6f8df4a02dc5451604dcb Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 29 Apr 2020 14:04:41 -0700 Subject: [PATCH] Fix descending tower BG redraw Due to the previous commit, the descending tower background now has to account for map.bscroll, or else it will be off by one pixel from the incoming textures. But ascending tower backgrounds work fine, so no need to do anything with those. --- desktop_version/src/Graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index e11556d0..36fdee84 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2246,13 +2246,14 @@ void Graphics::drawtowerbackground() if (map.tdrawback) { + int off = map.scrolldir == 0 ? 0 : map.bscroll; //Draw the whole thing; needed for every colour cycle! for (j = 0; j < 30; j++) { for (int i = 0; i < 40; i++) { temp = map.tower.backat(i, j, map.bypos); - drawtowertile3(i * 8, (j * 8) - (map.bypos % 8), temp, map.colstate); + drawtowertile3(i * 8, (j * 8) - (map.bypos % 8) - off, temp, map.colstate); } }