mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user