Left-hand driving flag review updates

This commit is contained in:
Michael Krasnyk
2017-08-21 13:41:27 +02:00
parent 7ad9e13f1e
commit 4eac861eae
4 changed files with 13 additions and 14 deletions
+1 -2
View File
@@ -238,7 +238,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
"interpolate",
&RasterContainer::GetRasterInterpolateFromSource);
auto registration_ProfileProperties = context.state.new_usertype<ProfileProperties>(
context.state.new_usertype<ProfileProperties>(
"ProfileProperties",
"traffic_signal_penalty",
sol::property(&ProfileProperties::GetTrafficSignalPenalty,
@@ -583,7 +583,6 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
if (use_turn_restrictions != sol::nullopt)
context.properties.use_turn_restrictions = use_turn_restrictions.value();
// DEPRECATED: global left_hand_driving will be removed in the next profile API
sol::optional<bool> left_hand_driving = properties["left_hand_driving"];
if (left_hand_driving != sol::nullopt)
context.properties.left_hand_driving = left_hand_driving.value();