distinguish between left and right, thx @emiltin
This commit is contained in:
parent
65ad3bb941
commit
ce784e0491
@ -473,7 +473,7 @@ int EdgeBasedGraphFactory::GetTurnPenalty(
|
|||||||
return luabind::call_function<int>(
|
return luabind::call_function<int>(
|
||||||
lua_state,
|
lua_state,
|
||||||
"turn_function",
|
"turn_function",
|
||||||
std::abs(180.-angle)
|
180.-angle
|
||||||
);
|
);
|
||||||
} catch (const luabind::error &er) {
|
} catch (const luabind::error &er) {
|
||||||
SimpleLogger().Write(logWARNING) << er.what();
|
SimpleLogger().Write(logWARNING) << er.what();
|
||||||
|
Loading…
Reference in New Issue
Block a user