src/ai/api/ai_station.cpp
branchnoai
changeset 10194 c9fdeb7450da
parent 9837 c9ec4f82e0d0
child 10339 ce6cd68d9eb8
equal deleted inserted replaced
10193:9f73edc0c57a 10194:c9fdeb7450da
    62 
    62 
    63 /* static */ int32 AIStation::GetCoverageRadius(AIStation::StationType type)
    63 /* static */ int32 AIStation::GetCoverageRadius(AIStation::StationType type)
    64 {
    64 {
    65 	if (type == STATION_AIRPORT) {
    65 	if (type == STATION_AIRPORT) {
    66 		DEBUG(ai, 0, "GetCoverageRadius(): coverage radius of airports needs to be requested via AIAirport::GetAirportCoverageRadius(), as it requires AirportType");
    66 		DEBUG(ai, 0, "GetCoverageRadius(): coverage radius of airports needs to be requested via AIAirport::GetAirportCoverageRadius(), as it requires AirportType");
    67 		return 0;
    67 		return -1;
    68 	}
    68 	}
    69 	if (!_patches.modified_catchment) return CA_UNMODIFIED;
    69 	if (!_patches.modified_catchment) return CA_UNMODIFIED;
    70 
    70 
    71 	switch (type) {
    71 	switch (type) {
    72 		case STATION_TRAIN:      return CA_TRAIN;
    72 		case STATION_TRAIN:      return CA_TRAIN;