summaryrefslogtreecommitdiff
path: root/game/network
diff options
context:
space:
mode:
Diffstat (limited to 'game/network')
-rw-r--r--game/network/network.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp
index c8482de..23d39af 100644
--- a/game/network/network.cpp
+++ b/game/network/network.cpp
@@ -99,12 +99,9 @@ Network::routeFromTo(const Link::End & end, const Node::Ptr & dest)
GenCurveDef
Network::genCurveDef(const GlobalPosition3D & start, const GlobalPosition3D & end, float startDir)
{
- const auto diff = difference(end, start);
- const auto yaw = vector_yaw(diff);
const auto dir = pi + startDir;
const auto flatStart = start.xy(), flatEnd = end.xy();
- const auto n2ed = (yaw * 2) - dir - pi;
- const auto centre = find_arc_centre(flatStart, dir, flatEnd, n2ed);
+ const auto centre = find_arc_centre(flatStart, dir, flatEnd);
if (centre.second) { // right hand arc
return {end, start, centre.first};