(svn r21144) -Change [FS#4206]: filter stations by cargo they have a rating for instead of having cargo waiting

This commit is contained in:
rubidium 2010-11-11 10:34:01 +00:00
parent c916455a68
commit 4dfdd4e9f9

View File

@ -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;