summaryrefslogtreecommitdiff
path: root/src/linkgraph
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-01-19 09:26:56 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-01-19 09:26:56 +0000
commitb158c7d0fa0bec2ccf885d06a9f1855ca8b3c698 (patch)
tree501d2d77868709da599734aaa413e46f1d48c544 /src/linkgraph
parentbe62387e4412e15fe7238a1c90979fe119c0fdcf (diff)
downloadopenttd-b158c7d0fa0bec2ccf885d06a9f1855ca8b3c698.tar.xz
(svn r26266) -Fix [FS#5860]: Update smallmap overlay if player joins different company and make sure company masks are valid
Diffstat (limited to 'src/linkgraph')
-rw-r--r--src/linkgraph/linkgraph_gui.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linkgraph/linkgraph_gui.h b/src/linkgraph/linkgraph_gui.h
index b2d74baa6..fcf81817f 100644
--- a/src/linkgraph/linkgraph_gui.h
+++ b/src/linkgraph/linkgraph_gui.h
@@ -51,8 +51,7 @@ public:
* @param company_mask Bitmask of companies to be shown.
* @param scale Desired thickness of lines and size of station dots.
*/
- LinkGraphOverlay(const Window *w, uint wid, uint32 cargo_mask = 0xFFFFFFFF,
- uint32 company_mask = 1 << _local_company, uint scale = 1) :
+ LinkGraphOverlay(const Window *w, uint wid, uint32 cargo_mask, uint32 company_mask, uint scale) :
window(w), widget_id(wid), cargo_mask(cargo_mask), company_mask(company_mask), scale(scale)
{}