summaryrefslogtreecommitdiff
path: root/game/network/link.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-07 11:32:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-07 11:32:15 +0000
commit30e3c9625856c24fa88ec148da6865657414c77d (patch)
tree76050748b6816606254117b02d3a681edeb77666 /game/network/link.cpp
parentFix up the maths in creating curved rails (diff)
downloadilt-30e3c9625856c24fa88ec148da6865657414c77d.tar.bz2
ilt-30e3c9625856c24fa88ec148da6865657414c77d.tar.xz
ilt-30e3c9625856c24fa88ec148da6865657414c77d.zip
Links have length, ends have entry direction
Diffstat (limited to 'game/network/link.cpp')
-rw-r--r--game/network/link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/network/link.cpp b/game/network/link.cpp
index 65aefd6..ad09341 100644
--- a/game/network/link.cpp
+++ b/game/network/link.cpp
@@ -2,7 +2,7 @@
#include <compare>
#include <tuple>
-Link::Link(End a, End b) : ends {{std::move(a), std::move(b)}} { }
+Link::Link(End a, End b, float l) : ends {{std::move(a), std::move(b)}}, length {l} { }
bool
operator<(const glm::vec3 & a, const glm::vec3 & b)