summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2021-04-05 12:13:56 +0100
committerMichael Lutz <michi@icosahedron.de>2021-04-08 19:34:45 +0200
commitae94b2d29695d46813e93d26e05abb436f2bf396 (patch)
tree3fe5a28ffa634cb70127b0af90362db5f623ceb4 /src
parent152940358469f060d0af68ecefb88293ac604aa0 (diff)
downloadopenttd-ae94b2d29695d46813e93d26e05abb436f2bf396.tar.xz
Fix: Viewport drag tooltip flickering when dragging outside window
Diffstat (limited to 'src')
-rw-r--r--src/misc_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 9d0259b3b..65f98b365 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -782,7 +782,7 @@ void GuiShowTooltips(Window *parent, StringID str, uint paramcount, const uint64
{
DeleteWindowById(WC_TOOLTIPS, 0);
- if (str == STR_NULL) return;
+ if (str == STR_NULL || !_cursor.in_window) return;
new TooltipsWindow(parent, str, paramcount, params, close_tooltip);
}