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

Fix off-by-one in "- Press ENTER to Teleport -" interpolation

Otherwise it would be clipped off too early, if it was even noticeable
without using slowmode.
This commit is contained in:
Misa 2020-05-01 16:53:50 -07:00 committed by Ethan Lee
parent 52f4799405
commit 82a7ff0357

View file

@ -1410,7 +1410,7 @@ void gamerender()
if (game.advancetext) graphics.bprint(5, 5, "- Press ACTION to advance text -", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true); if (game.advancetext) graphics.bprint(5, 5, "- Press ACTION to advance text -", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
} }
if (game.readytotele > 100 && !game.advancetext && game.hascontrol && !script.running && !game.intimetrial) if ((game.readytotele > 100 || game.oldreadytotele > 100) && !game.advancetext && game.hascontrol && !script.running && !game.intimetrial)
{ {
int alpha = graphics.lerp(game.oldreadytotele, game.readytotele); int alpha = graphics.lerp(game.oldreadytotele, game.readytotele);
if(graphics.flipmode) if(graphics.flipmode)