mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user