From 988a7720b9f9aec3baeab9c00542dd8f05070147 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 9 Mar 2021 15:42:55 -0800 Subject: [PATCH] Interpolate Direct Mode drawer closing This is pretty simple to interpolate, since ed.dmtileeditor is guaranteed to have only changed by 1, and then it's just multiplied by 4. --- desktop_version/src/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index e85d2b8e..9cfd3b39 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -2961,7 +2961,7 @@ void editorrender(void) { if(ed.dmtileeditor<=4) { - t2=(4-ed.dmtileeditor)*12; + t2=graphics.lerp((4-ed.dmtileeditor+1)*12, (4-ed.dmtileeditor)*12); } //Draw five lines of the editor