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

@@ -35,8 +35,7 @@ void Graphics::init(void)
trinketcolset = false;
showcutscenebars = false;
cutscenebarspos = 0;
oldcutscenebarspos = 0;
setbars(0);
notextoutline = false;
flipmode = false;
@@ -1094,6 +1093,12 @@ void Graphics::cutscenebarstimer(void)
}
}
void Graphics::setbars(const int position)
{
cutscenebarspos = position;
oldcutscenebarspos = position;
}
void Graphics::drawcrewman( int x, int y, int t, bool act, bool noshift /*=false*/ )
{
if (!act)