diff --git a/Contractor/EdgeBasedGraphFactory.cpp b/Contractor/EdgeBasedGraphFactory.cpp index 986f1702e..e765c90b4 100644 --- a/Contractor/EdgeBasedGraphFactory.cpp +++ b/Contractor/EdgeBasedGraphFactory.cpp @@ -473,7 +473,7 @@ int EdgeBasedGraphFactory::GetTurnPenalty( return luabind::call_function( lua_state, "turn_function", - std::abs(180.-angle) + 180.-angle ); } catch (const luabind::error &er) { SimpleLogger().Write(logWARNING) << er.what();