From 82d19145ae391fbd0272767ccf99b91b1dfaecb3 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 7 May 2020 15:53:12 -0700 Subject: [PATCH] Only draw fading-in and fading-out animations in MAPMODE This makes it so if you bring up the quit screen during a faded-out screen, you will at least see the screen and won't see black. And also the fade-in and fade-out animations will still work on the quit screen. And more importantly, I tested and there's no 1-frame flicker or anything. --- desktop_version/src/Render.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 4ae14676..8f09d322 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -2460,7 +2460,10 @@ void maprender() - graphics.drawfade(); + if (graphics.fademode == 3 || graphics.fademode == 5) + { + graphics.drawfade(); + } if (graphics.resumegamemode) {