equal
deleted
inserted
replaced
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; |