update changelog

This commit is contained in:
Kajari Ghosh 2017-11-03 13:31:36 -04:00
parent 002da129c8
commit 73f4e1d45a
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# UNRELEASED
- Profile:
- Remove dependency on turn types and turn modifier in the process_turn function in the `car.lua` profile. Guidance instruction types are not used to influence turn penalty anymore so this will break backward compatibility between profile version 3 and 4.
# 5.13.0
- Changes from 5.12:
- Profile:

View File

@ -567,7 +567,8 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
&ExtractionTurn::angle,
"turn_type",
sol::property([](const ExtractionTurn &turn) {
if (turn.number_of_roads > 2 || turn.source_mode != turn.target_mode || turn.is_u_turn)
if (turn.number_of_roads > 2 || turn.source_mode != turn.target_mode ||
turn.is_u_turn)
return guidance::TurnType::Turn;
else
return guidance::TurnType::NoTurn;