(svn r27905) -Fix [FS#6585]: Keep the "link" between industry chain and smallmap windows whenever possible

This commit is contained in:
adf88
2017-08-31 06:48:55 +00:00
parent 88726f71b6
commit 74e1fe130c
2 changed files with 18 additions and 4 deletions

View File

@@ -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;