1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Fix credits position being 1 frame off w/ BG when press/release ACTION

When you pressed and released ACTION to speed up the credits, the
credits position would end up being 1 frame off from the background.

This is due to the fact that we update the tower background after we
update the credits position, so this commit moves the tower background
update before the credits position update.
This commit is contained in:
Misa 2020-04-30 11:13:02 -07:00 committed by Ethan Lee
parent e1fdfb7cdb
commit 880465c2e5
2 changed files with 6 additions and 5 deletions

View file

@ -2171,6 +2171,12 @@ void gamecompleteinput()
game.press_action = false; game.press_action = false;
game.press_map = false; game.press_map = false;
//Do this before we update map.bypos
if (!game.colourblindmode)
{
graphics.updatetowerbackground();
}
//Do these here because input comes first //Do these here because input comes first
map.bypos += map.bscroll; map.bypos += map.bscroll;
game.oldcreditposition = game.creditposition; game.oldcreditposition = game.creditposition;

View file

@ -115,11 +115,6 @@ void gamecompletelogic()
map.bscroll = +1; map.bscroll = +1;
} }
if (!game.colourblindmode)
{
graphics.updatetowerbackground();
}
if (graphics.fademode == 1) if (graphics.fademode == 1)
{ {
//Fix some graphical things //Fix some graphical things