Fixed codacy issue

This commit is contained in:
Marc Garcia Puig 2020-04-09 18:58:50 +02:00 committed by bernat
parent f2130d1ef4
commit b28cb75273
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ namespace road {
if (lane.first != lane_id) {
dist += negative_lane_id ? current_dist : -current_dist;
tangent += current_tang;
} else if (lane.first == lane_id) {
} else {
current_dist *= 0.5;
dist += negative_lane_id ? current_dist : -current_dist;
tangent += current_tang * 0.5;