(svn r20579) -Change (r1579): Allow removing of buoys if they are only used by own vehicles.

This commit is contained in:
frosch
2010-08-20 12:50:59 +00:00
parent 70fa970d90
commit e8ec3de621
5 changed files with 8 additions and 8 deletions

View File

@@ -234,7 +234,7 @@ protected:
const Station *st;
FOR_ALL_STATIONS(st) {
if (st->owner == owner || (st->owner == OWNER_NONE && HasStationInUse(st->index, owner))) {
if (st->owner == owner || (st->owner == OWNER_NONE && HasStationInUse(st->index, true, owner))) {
if (this->facilities & st->facilities) { // only stations with selected facilities
int num_waiting_cargo = 0;
for (CargoID j = 0; j < NUM_CARGO; j++) {