From a117836ed6bbbc750830a96647da88d5506e69f8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Feb 2021 13:06:50 +0000 Subject: Construct an Arc from three points --- game/network/rail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/network') diff --git a/game/network/rail.cpp b/game/network/rail.cpp index 299c647..1ed59bd 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -79,7 +79,7 @@ RailLinkStraight::RailLinkStraight(NodePtr a, NodePtr b, const glm::vec3 & diff) } RailLinkCurve::RailLinkCurve(const NodePtr & a, const NodePtr & b, glm::vec2 c) : - RailLinkCurve(a, b, {c.x, a->pos.y, c.y}, create_arc(!c, a->pos, b->pos)) + RailLinkCurve(a, b, {c.x, a->pos.y, c.y}, {!c, a->pos, b->pos}) { } -- cgit v1.2.3