src/station_cmd.cpp
changeset 6147 2345f00d2a33
parent 6141 400b8bb355e3
child 6156 5adeec1679a4
equal deleted inserted replaced
6146:f71c29db7bf9 6147:2345f00d2a33
   539 
   539 
   540 	rect.min_x = MapSizeX();
   540 	rect.min_x = MapSizeX();
   541 	rect.min_y = MapSizeY();
   541 	rect.min_y = MapSizeY();
   542 	rect.max_x = rect.max_y = 0;
   542 	rect.max_x = rect.max_y = 0;
   543 	// Don't update acceptance for a buoy
   543 	// Don't update acceptance for a buoy
   544 	if (IsBuoy(st)) return;
   544 	if (st->IsBuoy()) return;
   545 
   545 
   546 	/* old accepted goods types */
   546 	/* old accepted goods types */
   547 	old_acc = GetAcceptanceMask(st);
   547 	old_acc = GetAcceptanceMask(st);
   548 
   548 
   549 	// Put all the tiles that span an area in the table.
   549 	// Put all the tiles that span an area in the table.
  2543 
  2543 
  2544 		st = GetStationByTile(cur_tile);
  2544 		st = GetStationByTile(cur_tile);
  2545 
  2545 
  2546 		for (i = 0; i != lengthof(around); i++) {
  2546 		for (i = 0; i != lengthof(around); i++) {
  2547 			if (around[i] == NULL) {
  2547 			if (around[i] == NULL) {
  2548 				if (!IsBuoy(st) &&
  2548 				if (!st->IsBuoy() &&
  2549 						(st->town->exclusive_counter == 0 || st->town->exclusivity == st->owner) && // check exclusive transport rights
  2549 						(st->town->exclusive_counter == 0 || st->town->exclusivity == st->owner) && // check exclusive transport rights
  2550 						st->goods[type].rating != 0 &&
  2550 						st->goods[type].rating != 0 &&
  2551 						(!_patches.selectgoods || st->goods[type].last_speed > 0) && // if last_speed is 0, no vehicle has been there.
  2551 						(!_patches.selectgoods || st->goods[type].last_speed > 0) && // if last_speed is 0, no vehicle has been there.
  2552 						((st->facilities & ~FACIL_BUS_STOP)   != 0 || type == CT_PASSENGERS) && // if we have other fac. than a bus stop, or the cargo is passengers
  2552 						((st->facilities & ~FACIL_BUS_STOP)   != 0 || type == CT_PASSENGERS) && // if we have other fac. than a bus stop, or the cargo is passengers
  2553 						((st->facilities & ~FACIL_TRUCK_STOP) != 0 || type != CT_PASSENGERS)) { // if we have other fac. than a cargo bay or the cargo is not passengers
  2553 						((st->facilities & ~FACIL_TRUCK_STOP) != 0 || type != CT_PASSENGERS)) { // if we have other fac. than a cargo bay or the cargo is not passengers