diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-08 15:43:53 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-08 15:43:53 +0100 |
commit | 18eacf4ba682400a62a1a975f30ad1284925d248 (patch) | |
tree | e623c1a337a0f29edb13a42d9d4b4e08a0aaaa72 /game/network/network.cpp | |
parent | Translate mouse motion y axis (diff) | |
download | ilt-18eacf4ba682400a62a1a975f30ad1284925d248.tar.bz2 ilt-18eacf4ba682400a62a1a975f30ad1284925d248.tar.xz ilt-18eacf4ba682400a62a1a975f30ad1284925d248.zip |
Split network intersect ray functions and return specific types
Diffstat (limited to 'game/network/network.cpp')
-rw-r--r-- | game/network/network.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp index 775d420..0189158 100644 --- a/game/network/network.cpp +++ b/game/network/network.cpp @@ -35,8 +35,8 @@ Network::findNodeAt(glm::vec3 pos) const return {}; } -Network::IntersectRayResult -Network::intersectRay(const Ray & ray) const +NodePtr +Network::intersectRayNodes(const Ray & ray) const { // Click within 2m of a node if (const auto node = std::find_if(nodes.begin(), nodes.end(), @@ -47,7 +47,7 @@ Network::intersectRay(const Ray & ray) const node != nodes.end()) { return *node; } - return intersectRayLinks(ray); + return {}; } void |