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
2021-03-19 23:08:35 -07:00
committed by Ethan Lee
parent 9e2716b253
commit f22756dd99
5 changed files with 15 additions and 14 deletions

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;