don't collapse highway ramps into uturns (#4074)

This commit is contained in:
Moritz Kobitzsch
2017-05-23 11:42:23 +02:00
committed by Daniel J. H
parent a58139dfb5
commit ceaf065d0e
5 changed files with 52 additions and 4 deletions
+3 -2
View File
@@ -123,8 +123,9 @@ inline bool requiresNameAnnounced(const std::string &from_name,
(names_are_equal && ref_is_removed) || is_suffix_change;
const auto needs_announce =
// " (Ref)" -> "Name "
(from_name.empty() && !from_ref.empty() && !to_name.empty() && to_ref.empty());
// " (Ref)" -> "Name " and reverse
(from_name.empty() && !from_ref.empty() && !to_name.empty() && to_ref.empty()) ||
(!from_name.empty() && from_ref.empty() && to_name.empty() && !to_ref.empty());
const auto pronunciation_changes = from_pronunciation != to_pronunciation;