Move horizontal warp background to Graphics::updatebackground()

This is so the background doesn't NYOOOOM past at light speed. Although
for a game set in space like VVVVVV, light speed ain't bad.

And this finally requires that editorlogic() have a call to
Graphics::updatebackground().
This commit is contained in:
Misa
2020-04-29 10:37:56 -07:00
committed by Ethan Lee
parent 9d104b68ee
commit c9c55d0c8b
2 changed files with 48 additions and 33 deletions

View File

@@ -3606,6 +3606,19 @@ void editorlogic()
ed.notedelay--;
}
if (!ed.settingsmod)
{
switch(ed.level[ed.levx+(ed.levy*ed.maxwidth)].warpdir)
{
case 1:
graphics.rcol=ed.getwarpbackground(ed.levx, ed.levy);
graphics.updatebackground(3);
break;
default:
break;
}
}
if (graphics.fademode == 1)
{
//Return to game