X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2Fnet.cpp;h=4f7fc66647a2817eb8f87133f4f937e382096097;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=7de901e31f58b7f842461e2a2414e677db8ceca5;hpb=56069d41c1553d87a8759713ef391d3a908adc0e;p=blank.git diff --git a/src/net/net.cpp b/src/net/net.cpp index 7de901e..4f7fc66 100644 --- a/src/net/net.cpp +++ b/src/net/net.cpp @@ -493,7 +493,7 @@ void Packet::Payload::Read(glm::quat &val, size_t off) const noexcept { } } // omitted component squared is 1 - length squared of others - val[largest_index] = sqrt(1.0f - dot(val, val)); + val[largest_index] = sqrt(1.0f - glm::length2(val)); // and already normalized }