diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-20 01:21:10 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-20 23:00:32 +0000 |
commit | 4da83d2f661691b40eb53591d2a998596f5d16a0 (patch) | |
tree | 2e0910912bf2b08f8e713a4690a4bd11edfed2b8 /src/misc_gui.cpp | |
parent | e3c639a09f1d2251477f69496120d057dd8320a9 (diff) | |
download | openttd-4da83d2f661691b40eb53591d2a998596f5d16a0.tar.xz |
Fix #7386: Measurement tooltip for tunnels, aqueducts & docks did not display or flickered.
Measurement tooltip was auto-closed as the hover/right-click test for tooltips was not
satisfied in this case. This is fixed by keeping the tooltip visible and instead explicitly
closing the tooltip when the PlaceObject is cancelled/completed.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 149ebe717..061070a2b 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -724,8 +724,8 @@ struct TooltipsWindow : public Window * we are dragging the tool. Normal tooltips work with hover or rmb. */ switch (this->close_cond) { case TCC_RIGHT_CLICK: if (!_right_button_down) delete this; break; - case TCC_LEFT_CLICK: if (!_left_button_down) delete this; break; case TCC_HOVER: if (!_mouse_hovering) delete this; break; + case TCC_NONE: break; } } }; |