From a9d43b543f755f59d625cf71ca70617d6fb5da1d Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 2 Jun 2024 22:52:44 -0700 Subject: [PATCH] Fix regression: Foreground redraw after G keybind This fixes a regression from 2.4 where the foreground wouldn't update after using the G keybind to go to a room, requiring the user to touch a tile to update the rendering. --- 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 a9d8cdc1..322510bf 100644 --- a/desktop_version/src/Editor.cpp +++ b/desktop_version/src/Editor.cpp @@ -2105,6 +2105,7 @@ static void input_submitted(void) ed.levx = SDL_clamp(help.Int(coord_x) - 1, 0, cl.mapwidth - 1); ed.levy = SDL_clamp(help.Int(coord_y) - 1, 0, cl.mapheight - 1); + graphics.foregrounddrawn = false; graphics.backgrounddrawn = false; break; }