improve merging the route

This commit is contained in:
Laura Klünder 2016-12-19 16:53:58 +01:00
parent 15f1255fd2
commit 0967e0d671

View file

@ -137,10 +137,10 @@ class Route:
last.arrow = False last.arrow = False
line.turning = 'left' line.turning = 'left'
distance += last.desc_distance distance += last.desc_distance
elif last.turning.endswith('left') and line.turning.endswith('left'): elif line.turning == '':
last.ignore = True last.ignore = True
last.arrow = False last.arrow = False
line.turning = 'left' line.turning = last.turning
distance += last.desc_distance distance += last.desc_distance
line.description = { line.description = {