summaryrefslogtreecommitdiff
path: root/src/linkgraph
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-05-19 14:36:35 +0000
committerrubidium <rubidium@openttd.org>2013-05-19 14:36:35 +0000
commit163dfdd34afe8020a207b8f0a1b58e29ce082c41 (patch)
tree0c66cb30bfd88dedb007b50fe4e51e9bc9cc5c6a /src/linkgraph
parent5bca50c466777cd134fb506efe4d8867d4b357f1 (diff)
downloadopenttd-163dfdd34afe8020a207b8f0a1b58e29ce082c41.tar.xz
(svn r25262) -Feature: linkgraph overlay for smallmap
Diffstat (limited to 'src/linkgraph')
-rw-r--r--src/linkgraph/linkgraph_gui.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/linkgraph/linkgraph_gui.cpp b/src/linkgraph/linkgraph_gui.cpp
index a5ec1e878..152cb7a30 100644
--- a/src/linkgraph/linkgraph_gui.cpp
+++ b/src/linkgraph/linkgraph_gui.cpp
@@ -13,8 +13,8 @@
#include "../window_gui.h"
#include "../company_base.h"
#include "../date_func.h"
-#include "linkgraph_gui.h"
#include "../viewport_func.h"
+#include "../smallmap_gui.h"
/**
* Colours for the various "load" states of links. Ordered from "unused" to
@@ -262,10 +262,9 @@ void LinkGraphOverlay::DrawStationDots(const DrawPixelInfo *dpi) const
* @param st The station we're looking for.
* @return Middle point of the station in the current window.
*/
-Point LinkGraphOverlay::GetStationMiddle(const Station *st) const {
- Point dummy;
- dummy.x = dummy.y = 0;
- return dummy;
+Point LinkGraphOverlay::GetStationMiddle(const Station *st) const
+{
+ return static_cast<const SmallMapWindow *>(this->window)->GetStationMiddle(st);
}
/**