diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-29 13:20:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-29 13:20:55 +0000 |
commit | 0841ead91c49a212134f19f7c0b411984b0fda29 (patch) | |
tree | 605d5e8e512747c79875d2c3a185c9740f7d1080 /game/network/network.cpp | |
parent | Run shadow mapper in camera relative space (diff) | |
download | ilt-0841ead91c49a212134f19f7c0b411984b0fda29.tar.bz2 ilt-0841ead91c49a212134f19f7c0b411984b0fda29.tar.xz ilt-0841ead91c49a212134f19f7c0b411984b0fda29.zip |
Remove weird operator! on vec2/3
Diffstat (limited to 'game/network/network.cpp')
-rw-r--r-- | game/network/network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp index d18345c..5de2f5d 100644 --- a/game/network/network.cpp +++ b/game/network/network.cpp @@ -100,7 +100,7 @@ Network::genCurveDef(const Position3D & start, const Position3D & end, float sta const auto diff {end - start}; const auto vy {vector_yaw(diff)}; const auto dir = pi + startDir; - const auto flatStart {!start}, flatEnd {!end}; + const auto flatStart {start.xy()}, flatEnd {end.xy()}; const auto n2ed {(vy * 2) - dir - pi}; const auto centre {find_arc_centre(flatStart, dir, flatEnd, n2ed)}; @@ -115,7 +115,7 @@ Network::genCurveDef(const Position3D & start, const Position3D & end, float sta { startDir += pi; endDir += pi; - const Position2D flatStart {!start}, flatEnd {!end}; + const Position2D flatStart {start.xy()}, flatEnd {end.xy()}; auto midheight = [&](auto mid) { const auto sm = glm::distance(flatStart, mid), em = glm::distance(flatEnd, mid); return start.z + ((end.z - start.z) * (sm / (sm + em))); |