equal
deleted
inserted
replaced
185 error("Could not allocate memory for the station-sorting-list"); |
185 error("Could not allocate memory for the station-sorting-list"); |
186 |
186 |
187 DEBUG(misc, 1) ("Building station list for player %d...", owner); |
187 DEBUG(misc, 1) ("Building station list for player %d...", owner); |
188 |
188 |
189 FOR_ALL_STATIONS(st) { |
189 FOR_ALL_STATIONS(st) { |
190 if (st->xy && st->owner == owner) { |
190 if (st->owner == owner) { |
191 if (facilities & st->facilities) { //only stations with selected facilities |
191 if (facilities & st->facilities) { //only stations with selected facilities |
192 int num_waiting_cargo = 0; |
192 int num_waiting_cargo = 0; |
193 for (j = 0; j < NUM_CARGO; j++) { |
193 for (j = 0; j < NUM_CARGO; j++) { |
194 if (st->goods[j].waiting_acceptance & 0xFFF) { |
194 if (st->goods[j].waiting_acceptance & 0xFFF) { |
195 num_waiting_cargo++; //count number of waiting cargo |
195 num_waiting_cargo++; //count number of waiting cargo |