1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-19 18:29:36 +00:00

fixed ESC not working in draw editor, and 'fill' showing incorrectly

This commit is contained in:
Zeno Rogue 2024-06-29 10:49:17 +02:00
parent edc173a538
commit cbf8167d8f

View File

@ -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)