mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
b50ca5b9e6
commit
e9dd38ee35
1 changed files with 2 additions and 1 deletions
|
@ -2246,13 +2246,14 @@ void Graphics::drawtowerbackground()
|
||||||
|
|
||||||
if (map.tdrawback)
|
if (map.tdrawback)
|
||||||
{
|
{
|
||||||
|
int off = map.scrolldir == 0 ? 0 : map.bscroll;
|
||||||
//Draw the whole thing; needed for every colour cycle!
|
//Draw the whole thing; needed for every colour cycle!
|
||||||
for (j = 0; j < 30; j++)
|
for (j = 0; j < 30; j++)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 40; i++)
|
for (int i = 0; i < 40; i++)
|
||||||
{
|
{
|
||||||
temp = map.tower.backat(i, j, map.bypos);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue