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/link.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/link.cpp')
-rw-r--r-- | game/network/link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/network/link.cpp b/game/network/link.cpp index 498afe4..d8479dd 100644 --- a/game/network/link.cpp +++ b/game/network/link.cpp @@ -46,7 +46,7 @@ LinkCurve::positionAt(float dist, unsigned char start) const const auto es {std::make_pair(ends[start].node.get(), ends[1 - start].node.get())}; const auto as {std::make_pair(arc[start], arc[1 - start])}; const auto ang {as.first + ((as.second - as.first) * frac)}; - const auto relPos {!sincosf(ang) * radius}; + const auto relPos {sincosf(ang) ^ 0.F * radius}; const auto relClimb {vehiclePositionOffset() + Position3D {0, 0, es.first->pos.z - centreBase.z + ((es.second->pos.z - es.first->pos.z) * frac)}}; const auto pitch {vector_pitch({0, 0, (es.second->pos.z - es.first->pos.z) / length})}; |