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.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-04-29 18:08:13 -04:00
1 parent b50ca5b9e6
commit e9dd38ee35
1 file changed
+2 -1
+2 -1
View File
@@ -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);
}
}