1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Don't take editor input when fading out

This fixes being able to re-trigger the fadeout while a fadeout is
already happening. It also fixes being able to enter playtesting during
the fadeout, which means the level now has a fadeout you normally can't
do in actual gameplay.
This commit is contained in:
Misa 2021-08-05 13:12:15 -07:00 committed by Ethan Lee
parent 48a1c7ee61
commit e184923667

View file

@ -3974,6 +3974,10 @@ static void editormenuactionpress(void)
void editorinput(void)
{
extern editorclass ed;
if (graphics.fademode == 3 /* fading out */)
{
return;
}
game.mx = (float) key.mx;
game.my = (float) key.my;
ed.tilex=(game.mx - (game.mx%8))/8;