Change: Owner of vehicle with exclusive transport rights may now load cargo from neutral stations (#7256)

This commit is contained in:
SamuXarick
2019-02-21 21:23:37 +00:00
committed by PeterN
parent 673f6753e9
commit 456e67ac1c
2 changed files with 14 additions and 3 deletions

View File

@@ -3853,7 +3853,7 @@ uint MoveGoodsToStation(CargoID type, uint amount, SourceType source_type, Sourc
Station *st = *st_iter;
/* Is the station reserved exclusively for somebody else? */
if (st->town->exclusive_counter > 0 && st->town->exclusivity != st->owner) continue;
if (st->owner != OWNER_NONE && st->town->exclusive_counter > 0 && st->town->exclusivity != st->owner) continue;
if (st->goods[type].rating == 0) continue; // Lowest possible rating, better not to give cargo anymore