summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp
index f86286f3d..dc50b4f10 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -356,6 +356,12 @@ void Station::RecomputeIndustriesNear()
this->industries_near.Clear();
if (this->rect.IsEmpty()) return;
+ if (!_settings_game.station.serve_neutral_industries && this->industry != NULL) {
+ /* Station is associated with an industry, so we only need to deliver to that industry. */
+ *this->industries_near.Append() = this->industry;
+ return;
+ }
+
RectAndIndustryVector riv = {
this->GetCatchmentRect(),
&this->industries_near