default to using turn restrictions
This commit is contained in:
parent
d59e526e1e
commit
22c5c539c2
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user