mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r21144) -Change [FS#4206]: filter stations by cargo they have a rating for instead of having cargo waiting
This commit is contained in:
parent
c916455a68
commit
4dfdd4e9f9
@ -238,7 +238,7 @@ protected:
|
||||
if (this->facilities & st->facilities) { // only stations with selected facilities
|
||||
int num_waiting_cargo = 0;
|
||||
for (CargoID j = 0; j < NUM_CARGO; j++) {
|
||||
if (!st->goods[j].cargo.Empty()) {
|
||||
if (HasBit(st->goods[j].acceptance_pickup, GoodsEntry::PICKUP)) {
|
||||
num_waiting_cargo++; // count number of waiting cargo
|
||||
if (HasBit(this->cargo_filter, j)) {
|
||||
*this->stations.Append() = st;
|
||||
|
Loading…
Reference in New Issue
Block a user