summaryrefslogtreecommitdiff
path: root/game/network/network.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-10-20 16:24:14 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-10-20 16:24:14 +0100
commit5b6a6f3b241fea6d19521ddbb705e27d5e4c0268 (patch)
tree2c7fd705a6cff4be087f62b9ce940b413f8942b4 /game/network/network.cpp
parentMisc readability fixes (diff)
downloadilt-5b6a6f3b241fea6d19521ddbb705e27d5e4c0268.tar.bz2
ilt-5b6a6f3b241fea6d19521ddbb705e27d5e4c0268.tar.xz
ilt-5b6a6f3b241fea6d19521ddbb705e27d5e4c0268.zip
Move lots of maths helpers to inline, constexpr, templates
Always for working with different dimensions/types
Diffstat (limited to 'game/network/network.cpp')
-rw-r--r--game/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp
index 65b2a62..fa86cb5 100644
--- a/game/network/network.cpp
+++ b/game/network/network.cpp
@@ -95,7 +95,7 @@ Network::routeFromTo(const Link::End & end, const Node::Ptr & dest) const
GenCurveDef
Network::genCurveDef(const GlobalPosition3D & start, const GlobalPosition3D & end, float startDir)
{
- const auto diff {end - start};
+ const auto diff = difference(end, start);
const auto vy {vector_yaw(diff)};
const auto dir = pi + startDir;
const auto flatStart {start.xy()}, flatEnd {end.xy()};