summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-08 11:21:24 +0000
committeralberth <alberth@openttd.org>2010-08-08 11:21:24 +0000
commit7ad1f5ccef8f58656c391b0f5854b3b776eeed3b (patch)
tree7559beb5faf504560a9b5995af5c58298bb7d477 /src/smallmap_gui.cpp
parent2fa665114e5cd9136b80e8a5e91a3418986a41d0 (diff)
downloadopenttd-7ad1f5ccef8f58656c391b0f5854b3b776eeed3b.tar.xz
(svn r20415) -Add: Clicking at the smallmap disables updates from the industry chain window.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index e73401c32..b614c3988 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1154,6 +1154,9 @@ public:
virtual void OnClick(Point pt, int widget, int click_count)
{
+ /* User clicked something, notify the industry chain window to stop sending newly selected industries. */
+ InvalidateWindowClassesData(WC_INDUSTRY_CARGOES, NUM_INDUSTRYTYPES);
+
switch (widget) {
case SM_WIDGET_MAP: { // Map window
/*