summaryrefslogtreecommitdiff
path: root/src/station_func.h
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-03-08 18:30:44 +0000
committerGitHub <noreply@github.com>2019-03-08 18:30:44 +0000
commitdd20ccee88a55ed08abb2a47b88cafc7c92a5e81 (patch)
tree98b6230bacf879cab4abd26d4049e4abc237a310 /src/station_func.h
parent41563a871b175f3469254d57dc019fda5210f8a9 (diff)
downloadopenttd-dd20ccee88a55ed08abb2a47b88cafc7c92a5e81.tar.xz
Feature: Industries with neutral stations (e.g. Oil Rig) only supply/accept cargo to/from their neutral station. (#7234)
This change is a controlled by a game setting, located under Environment -> Industries which allows toggling the behaviour. It defaults to enabled. "Company stations can serve industries with attached neutral stations" When enabled, industries with attached neutral station (such as Oil Rigs) may also be served by company-owned stations built nearby. This is the traditional behaviour. When disabled, these industries may only be served by their neutral station. Any nearby company-owned stations won't be able to serve them, nor will the neutral station serve anything else other than the industry.
Diffstat (limited to 'src/station_func.h')
-rw-r--r--src/station_func.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_func.h b/src/station_func.h
index 9748297f2..ca3885e8b 100644
--- a/src/station_func.h
+++ b/src/station_func.h
@@ -19,6 +19,7 @@
#include "economy_func.h"
#include "rail.h"
#include "linkgraph/linkgraph_type.h"
+#include "industry_type.h"
void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
@@ -28,7 +29,7 @@ void ShowStationViewWindow(StationID station);
void UpdateAllStationVirtCoords();
CargoArray GetProductionAroundTiles(TileIndex tile, int w, int h, int rad);
-CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, CargoTypes *always_accepted = NULL);
+CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, CargoTypes *always_accepted = NULL, const Industry *ind = NULL);
void UpdateStationAcceptance(Station *st, bool show_msg);