diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-11 00:40:25 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-11 00:40:25 +0100 |
commit | fbc6c0eed90fb704524eb503a4f7dae9e0d9dca2 (patch) | |
tree | d60e00774f3333d4f869050e40cb68e5d27d5ea3 /game/network/network.h | |
parent | GameMainSelector provides world overlay and renders its target (diff) | |
download | ilt-fbc6c0eed90fb704524eb503a4f7dae9e0d9dca2.tar.bz2 ilt-fbc6c0eed90fb704524eb503a4f7dae9e0d9dca2.tar.xz ilt-fbc6c0eed90fb704524eb503a4f7dae9e0d9dca2.zip |
Fix return type of network link factories
Diffstat (limited to 'game/network/network.h')
-rw-r--r-- | game/network/network.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/network/network.h b/game/network/network.h index 9dbca7c..d561e55 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -30,8 +30,8 @@ public: [[nodiscard]] Link::Nexts routeFromTo(const Link::End &, glm::vec3) const; [[nodiscard]] Link::Nexts routeFromTo(const Link::End &, const NodePtr &) const; - virtual LinkPtr addStraight(glm::vec3, glm::vec3) = 0; - virtual LinkPtr addJoins(glm::vec3, glm::vec3) = 0; + virtual LinkCPtr addStraight(glm::vec3, glm::vec3) = 0; + virtual CLinks addJoins(glm::vec3, glm::vec3) = 0; protected: static void joinLinks(const LinkPtr & l, const LinkPtr & ol); @@ -63,8 +63,8 @@ public: return l; } - LinkPtr addStraight(glm::vec3 n1, glm::vec3 n2) override; - LinkPtr addJoins(glm::vec3, glm::vec3) override; + LinkCPtr addStraight(glm::vec3 n1, glm::vec3 n2) override; + CLinks addJoins(glm::vec3, glm::vec3) override; void render(const Shader &) const override; }; |