Feature: Set exclusive access to industry from GS (#8115)
(cherry picked from commit 9a45a0f535
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
4d97fbc814
commit
f39a00d676
@@ -1088,6 +1088,8 @@ static uint DeliverGoodsToIndustry(const Station *st, CargoID cargo_type, uint n
|
||||
/* Check if industry temporarily refuses acceptance */
|
||||
if (IndustryTemporarilyRefusesCargo(ind, cargo_type)) continue;
|
||||
|
||||
if (ind->exclusive_supplier != INVALID_OWNER && ind->exclusive_supplier != st->owner) continue;
|
||||
|
||||
/* Insert the industry into _cargo_delivery_destinations, if not yet contained */
|
||||
include(_cargo_delivery_destinations, ind);
|
||||
|
||||
|
Reference in New Issue
Block a user