summaryrefslogtreecommitdiff
path: root/game/network/network.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-13 20:42:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-13 20:42:50 +0000
commit49ff05eda05f4f06eda3b6a2a6b116005db42e57 (patch)
tree8848b18fe92ee26e0c6a40e61d3436c4c8d9979a /game/network/network.cpp
parentSimplified TestLink extending LinkStraight (diff)
downloadilt-49ff05eda05f4f06eda3b6a2a6b116005db42e57.tar.bz2
ilt-49ff05eda05f4f06eda3b6a2a6b116005db42e57.tar.xz
ilt-49ff05eda05f4f06eda3b6a2a6b116005db42e57.zip
Route Walker returns Link::Nexts, not vector links
This makes more sense when you realise that the existing navigation workings work on exactly the same type!
Diffstat (limited to 'game/network/network.cpp')
-rw-r--r--game/network/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp
index 7349ff0..6eaccef 100644
--- a/game/network/network.cpp
+++ b/game/network/network.cpp
@@ -47,7 +47,7 @@ Network::joinLinks(const LinkPtr & l, const LinkPtr & ol)
}
}
-std::vector<LinkWPtr>
+Link::Nexts
Network::routeFromTo(const Link::End & start, glm::vec3 dest) const
{
auto destNode {findNodeAt(dest)};
@@ -57,7 +57,7 @@ Network::routeFromTo(const Link::End & start, glm::vec3 dest) const
return routeFromTo(start, destNode);
}
-std::vector<LinkWPtr>
+Link::Nexts
Network::routeFromTo(const Link::End & end, const NodePtr & dest) const
{
return RouteWalker().findRouteTo(end, dest);