mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user