[generator] Deduplicate US State Highways shields
This commit is contained in:
parent
ce99f762e4
commit
2d56af8a02
1 changed files with 7 additions and 0 deletions
|
@ -79,6 +79,13 @@ public:
|
|||
|
||||
RoadShieldType FindNetworkShield(std::string network) const
|
||||
{
|
||||
// Special processing for US state highways, to not duplicate the table.
|
||||
if (network.size() == 5 && strings::StartsWith(network, "US:"))
|
||||
{
|
||||
if (std::find(kStatesCode.begin(), kStatesCode.end(), network.substr(3)) != kStatesCode.end())
|
||||
return RoadShieldType::Generic_White;
|
||||
}
|
||||
|
||||
// Minimum length for the network tag is 4 (US:I).
|
||||
if (network.size() > 4)
|
||||
{
|
||||
|
|
Reference in a new issue