equal
deleted
inserted
replaced
36 return AIRoad::GetNeighbourRoadCount(tile); |
36 return AIRoad::GetNeighbourRoadCount(tile); |
37 } |
37 } |
38 |
38 |
39 int32 AITileListRoadTile::Valuate(int32 tile) const |
39 int32 AITileListRoadTile::Valuate(int32 tile) const |
40 { |
40 { |
41 return ::IsTileType(tile, MP_STREET) && ::GetRoadTileType(tile) != ROAD_TILE_DEPOT; |
41 return ::IsTileType(tile, MP_ROAD) && ::GetRoadTileType(tile) != ROAD_TILE_DEPOT; |
42 } |
42 } |
43 |
43 |
44 int32 AITileListCargoAcceptance::Valuate(int32 tile) const |
44 int32 AITileListCargoAcceptance::Valuate(int32 tile) const |
45 { |
45 { |
46 return AITile::GetCargoAcceptance(tile, this->cargo_type, this->width, this->height, this->radius); |
46 return AITile::GetCargoAcceptance(tile, this->cargo_type, this->width, this->height, this->radius); |