In the function "UpdateStationAcceptance(Station *st, bool show_msg)" in station_cmd.cpp we can find this loop :
Code: Select all
// Adjust in case our station only accepts fewer kinds of goods
for (CargoID i = 0; i < NUM_CARGO; i++) {
uint amt = min(accepts[i], 15);
// Make sure the station can accept the goods type.
bool is_passengers = IsCargoInClass(i, CC_PASSENGERS);
if ((!is_passengers && !(st->facilities & (byte)~FACIL_BUS_STOP)) ||
(is_passengers && !(st->facilities & (byte)~FACIL_TRUCK_STOP)))
amt = 0;
st->goods[i].acceptance = (amt >= 8);
}