From cbf8167d8fbf2810c11e04fecd02d8f0bd2c8b80 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 29 Jun 2024 10:49:17 +0200 Subject: [PATCH] fixed ESC not working in draw editor, and 'fill' showing incorrectly --- mapeditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index 713604c6..276aa2fb 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -2386,7 +2386,7 @@ EX namespace mapeditor { else if(freedraw) { dialog::addBoolItem_action("symmetry", texture::texturesym, '0'); if(drawing_tool) { - if(dtfill) + if(!dtfill) dialog::addBoolItem(XLAT("fill"), dtfill, 'f'); else dialog::addColorItem(XLAT("fill"), dtcolor, 'f'); @@ -2947,6 +2947,7 @@ EX namespace mapeditor { handlePanning(sym, uni); dialog::handleNavigation(sym, uni); + if(uni == SDLK_ESCAPE) popScreen(); if(uni == SETMOUSEKEY) { if(mousekey == newmousekey)