Ensure oldcutscenebars is updated when cutscenebarspos is

To do this, I've added Graphics::setbars(), to make sure
oldcutscenebarspos always gets assigned when cutscenebarspos is. This
fixes potential deltaframe rendering issues if these two mismatch.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-03-21 01:06:29 -04:00
1 parent 9e2716b253
commit f22756dd99
5 files changed
+15 -14

No files matched your search

+2 -3
View File
@@ -71,8 +71,7 @@ void gamecompletelogic(void)
{
//Fix some graphical things
graphics.showcutscenebars = false;
graphics.cutscenebarspos = 0;
graphics.oldcutscenebarspos = 0;
graphics.setbars(0);
graphics.titlebg.scrolldir = 0;
graphics.titlebg.bypos = 0;
//Return to game
@@ -104,7 +103,7 @@ void gamecompletelogic2(void)
{
//Fix some graphical things
graphics.showcutscenebars = false;
graphics.cutscenebarspos = 0;
graphics.setbars(0);
//Fix the save thingy
game.deletequick();
int tmp=music.currentsong;