station_gui.c
changeset 4346 66105d4f6e83
parent 4344 7e123fec5b0b
child 4354 10f4ce894eb1
equal deleted inserted replaced
4345:1da147230c79 4346:66105d4f6e83
   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