summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.h
diff options
context:
space:
mode:
authoradf88 <adf88@openttd.org>2017-08-31 06:48:55 +0000
committeradf88 <adf88@openttd.org>2017-08-31 06:48:55 +0000
commit74e1fe130c8d7292771e3374180190e5a28e5175 (patch)
tree5f6f212280c0a1c55e067e6cd96f1aa5ee1a9b74 /src/smallmap_gui.h
parent88726f71b615b2f1c7525c4e62bf52c535b08f51 (diff)
downloadopenttd-74e1fe130c8d7292771e3374180190e5a28e5175.tar.xz
(svn r27905) -Fix [FS#6585]: Keep the "link" between industry chain and smallmap windows whenever possible
Diffstat (limited to 'src/smallmap_gui.h')
-rw-r--r--src/smallmap_gui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/smallmap_gui.h b/src/smallmap_gui.h
index 2903544a6..c3151b1a7 100644
--- a/src/smallmap_gui.h
+++ b/src/smallmap_gui.h
@@ -82,6 +82,7 @@ protected:
uint8 refresh; ///< Refresh counter, zeroed every FORCE_REFRESH_PERIOD ticks.
LinkGraphOverlay *overlay;
+ static void BreakIndustryChainLink();
Point SmallmapRemapCoords(int x, int y) const;
/**
@@ -173,7 +174,7 @@ public:
friend class NWidgetSmallmapDisplay;
SmallMapWindow(WindowDesc *desc, int window_number);
- virtual ~SmallMapWindow() { delete this->overlay; }
+ virtual ~SmallMapWindow();
void SmallMapCenterOnCurrentPos();
Point GetStationMiddle(const Station *st) const;