summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 898bc5447..205064096 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1048,6 +1048,11 @@ static uint DeliverGoodsToIndustry(const Station *st, CargoID cargo_type, uint n
Industry *ind = st->industries_near[i];
if (ind->index == source) continue;
+ if (!_settings_game.station.serve_neutral_industries) {
+ /* If this industry is only served by its neutral station, check it's us. */
+ if (ind->neutral_station != NULL && ind->neutral_station != st) continue;
+ }
+
uint cargo_index;
for (cargo_index = 0; cargo_index < lengthof(ind->accepts_cargo); cargo_index++) {
if (cargo_type == ind->accepts_cargo[cargo_index]) break;