summaryrefslogtreecommitdiff
path: root/game/network/rail.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-12-29 13:20:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-12-29 13:20:55 +0000
commit0841ead91c49a212134f19f7c0b411984b0fda29 (patch)
tree605d5e8e512747c79875d2c3a185c9740f7d1080 /game/network/rail.cpp
parentRun shadow mapper in camera relative space (diff)
downloadilt-0841ead91c49a212134f19f7c0b411984b0fda29.tar.bz2
ilt-0841ead91c49a212134f19f7c0b411984b0fda29.tar.xz
ilt-0841ead91c49a212134f19f7c0b411984b0fda29.zip
Remove weird operator! on vec2/3
Diffstat (limited to 'game/network/rail.cpp')
-rw-r--r--game/network/rail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/network/rail.cpp b/game/network/rail.cpp
index ff101d4..545a728 100644
--- a/game/network/rail.cpp
+++ b/game/network/rail.cpp
@@ -45,7 +45,7 @@ RailLinks::addLinksBetween(Position3D start, Position3D end)
if (dir == vector_yaw(end - start)) {
return addLink<RailLinkStraight>(start, end);
}
- const Position2D flatStart {!start}, flatEnd {!end};
+ const Position2D flatStart {start.xy()}, flatEnd {end.xy()};
if (node2ins.second == NodeIs::InNetwork) {
auto midheight = [&](auto mid) {
const auto sm = glm::distance(flatStart, mid), em = glm::distance(flatEnd, mid);
@@ -142,7 +142,7 @@ RailLinkStraight::RailLinkStraight(Node::Ptr a, Node::Ptr b, const Position3D &
}
RailLinkCurve::RailLinkCurve(const Node::Ptr & a, const Node::Ptr & b, Position2D c) :
- RailLinkCurve(a, b, c ^ a->pos.z, {!c, a->pos, b->pos})
+ RailLinkCurve(a, b, c ^ a->pos.z, {c ^ 0.F, a->pos, b->pos})
{
}