From e184923667915332836add138ccd4f627651b430 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 5 Aug 2021 13:12:15 -0700 Subject: [PATCH] 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. --- desktop_version/src/editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 34d3e4be..03179b82 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -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;