Skip to content
Snippets Groups Projects
Commit dadb0f66 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

map: improve polyline duplicate detection

parent 993f6be6
No related branches found
No related tags found
No related merge requests found
...@@ -488,8 +488,7 @@ sub map_history { ...@@ -488,8 +488,7 @@ sub map_history {
next; next;
} }
my $key my $key = $from_eva . '!' . $to_eva . '!' . ( $to_index - $from_index );
= $from_eva . '!' . $to_eva . '!' . $from_index . '!' . $to_index;
if ( $seen{$key} ) { if ( $seen{$key} ) {
next; next;
...@@ -498,7 +497,7 @@ sub map_history { ...@@ -498,7 +497,7 @@ sub map_history {
$seen{$key} = 1; $seen{$key} = 1;
# direction does not matter at the moment # direction does not matter at the moment
$key = $to_eva . '!' . $from_eva . '!' . $to_index . '!' . $from_index; $key = $to_eva . '!' . $from_eva . '!' . ( $to_index - $from_index );
$seen{$key} = 1; $seen{$key} = 1;
@polyline = @polyline[ $from_index .. $to_index ]; @polyline = @polyline[ $from_index .. $to_index ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment