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 authored and Ethan Lee committed 2020-06-19 09:05:48 -04:00
1 parent e1fdfb7cdb
commit 880465c2e5
2 files changed
+6 -5

No files matched your search

+6
View File
@@ -2171,6 +2171,12 @@ void gamecompleteinput()
game.press_action = false;
game.press_map = false;
//Do this before we update map.bypos
if (!game.colourblindmode)
{
graphics.updatetowerbackground();
}
//Do these here because input comes first
map.bypos += map.bscroll;
game.oldcreditposition = game.creditposition;
-5
View File
@@ -115,11 +115,6 @@ void gamecompletelogic()
map.bscroll = +1;
}
if (!game.colourblindmode)
{
graphics.updatetowerbackground();
}
if (graphics.fademode == 1)
{
//Fix some graphical things