2622 (!_patches.selectgoods || st->goods[type].last_speed > 0) && // we are servicing the station (or cargo is dumped on all stations) |
2622 (!_patches.selectgoods || st->goods[type].last_speed > 0) && // we are servicing the station (or cargo is dumped on all stations) |
2623 ((st->facilities & ~FACIL_BUS_STOP) != 0 || IsCargoInClass(type, CC_PASSENGERS)) && // if we have other fac. than a bus stop, or the cargo is passengers |
2623 ((st->facilities & ~FACIL_BUS_STOP) != 0 || IsCargoInClass(type, CC_PASSENGERS)) && // if we have other fac. than a bus stop, or the cargo is passengers |
2624 ((st->facilities & ~FACIL_TRUCK_STOP) != 0 || !IsCargoInClass(type, CC_PASSENGERS))) { // if we have other fac. than a cargo bay or the cargo is not passengers |
2624 ((st->facilities & ~FACIL_TRUCK_STOP) != 0 || !IsCargoInClass(type, CC_PASSENGERS))) { // if we have other fac. than a cargo bay or the cargo is not passengers |
2625 if (_patches.modified_catchment) { |
2625 if (_patches.modified_catchment) { |
2626 // min and max coordinates of the producer relative |
2626 // min and max coordinates of the producer relative |
2627 const int x_min_prod = 9; |
2627 const int x_min_prod = max_rad + 1; |
2628 const int x_max_prod = 8 + w_prod; |
2628 const int x_max_prod = max_rad + w_prod; |
2629 const int y_min_prod = 9; |
2629 const int y_min_prod = max_rad + 1; |
2630 const int y_max_prod = 8 + h_prod; |
2630 const int y_max_prod = max_rad + h_prod; |
2631 |
2631 |
2632 int rad = FindCatchmentRadius(st); |
2632 int rad = FindCatchmentRadius(st); |
2633 |
2633 |
2634 int x_dist = min(w_cur - x_min_prod, x_max_prod - w_cur); |
2634 int x_dist = min(w_cur - x_min_prod, x_max_prod - w_cur); |
2635 if (w_cur < x_min_prod) { |
2635 if (w_cur < x_min_prod) { |