summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 13:06:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 13:06:50 +0000
commita117836ed6bbbc750830a96647da88d5506e69f8 (patch)
treecfa56e664c825c4f618c37164b2cffac15bcc0e1 /game
parentSimplify flat_angle (diff)
downloadilt-a117836ed6bbbc750830a96647da88d5506e69f8.tar.bz2
ilt-a117836ed6bbbc750830a96647da88d5506e69f8.tar.xz
ilt-a117836ed6bbbc750830a96647da88d5506e69f8.zip
Construct an Arc from three points
Diffstat (limited to 'game')
-rw-r--r--game/network/rail.cpp2
1 files changed, 1 insertions, 1 deletions
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})
{
}