summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:00:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:00:30 +0100
commitc3b032626c841e180e67aed6093397b8caafbd6c (patch)
tree96ce5b0a3998325bffd7f79cdef059f4971919dc /game
parentAdd candidateNodeAt, returns a network node why may not be part of the network (diff)
downloadilt-c3b032626c841e180e67aed6093397b8caafbd6c.tar.bz2
ilt-c3b032626c841e180e67aed6093397b8caafbd6c.tar.xz
ilt-c3b032626c841e180e67aed6093397b8caafbd6c.zip
Support searching node network by vec3 position
Diffstat (limited to 'game')
-rw-r--r--game/network/network.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/network/network.h b/game/network/network.h
index 79a4a2b..34e6a60 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -37,7 +37,7 @@ public:
protected:
static void joinLinks(const LinkPtr & l, const LinkPtr & ol);
- using Nodes = std::set<NodePtr, PtrSorter<NodePtr>>;
+ using Nodes = std::set<NodePtr, PtrMemberSorter<NodePtr, &Node::pos>>;
Nodes nodes;
std::shared_ptr<Texture> texture;
};