default to using turn restrictions

This commit is contained in:
Emil Tin 2013-02-07 16:16:39 +01:00 committed by DennisOSRM
parent d59e526e1e
commit 22c5c539c2
3 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,10 @@ void PBFParser::RegisterScriptingEnvironment(ScriptingEnvironment & _se) {
if(0 != luaL_dostring( scriptingEnvironment.getLuaStateForThreadID(0), "return use_turn_restrictions\n")) {
ERR(lua_tostring(scriptingEnvironment.getLuaStateForThreadID(0),-1)<< " occured in scripting block");
}
if( lua_isboolean(scriptingEnvironment.getLuaStateForThreadID(0), -1) ) {
use_turn_restrictions = lua_toboolean(scriptingEnvironment.getLuaStateForThreadID(0), -1);
INFO("Use turn restrictions:" << use_turn_restrictions);
}
INFO("Use turn restrictions: " << (use_turn_restrictions ? "yes" : "no"));
if(lua_function_exists(scriptingEnvironment.getLuaStateForThreadID(0), "get_exceptions" )) {
//get list of turn restriction exceptions

View File

@ -72,7 +72,6 @@ use_restrictions = true
ignore_areas = true -- future feature
traffic_signal_penalty = 2
u_turn_penalty = 20
use_turn_restrictions = true
-- End of globals

View File

@ -39,7 +39,6 @@ use_restrictions = true
ignore_areas = true -- future feature
traffic_signal_penalty = 2
u_turn_penalty = 20
use_turn_restrictions = true
-- End of globals