From 2c2acc93e6cc43ac1a586cd1b004eb5de5b77cb1 Mon Sep 17 00:00:00 2001 From: Info Teddy Date: Sun, 19 Jan 2020 21:46:52 -0800 Subject: [PATCH] Reset Direct Mode in editorclass::reset() There's a long-standing issue where the Direct Mode status of the loaded custom map in memory never resets properly. So if you load a level with a certain layout of Direct Mode rooms, that same layout will be preserved if you start making a new level in the editor. This commit fixes that issue. --- desktop_version/src/editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index c96ba37a..ed24e7ca 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -314,6 +314,7 @@ void editorclass::reset() level[i+(j*maxwidth)].enemyy1=0; level[i+(j*maxwidth)].enemyx2=320; level[i+(j*maxwidth)].enemyy2=240; + level[i+(j*maxwidth)].directmode=0; } }