diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:06:50 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:06:50 +0000 |
commit | a117836ed6bbbc750830a96647da88d5506e69f8 (patch) | |
tree | cfa56e664c825c4f618c37164b2cffac15bcc0e1 /game | |
parent | Simplify flat_angle (diff) | |
download | ilt-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.cpp | 2 |
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}) { } |