]> git.localhorst.tv Git - blank.git/blobdiff - src/net/net.cpp
glm backwards compatibility
[blank.git] / src / net / net.cpp
index 7de901e31f58b7f842461e2a2414e677db8ceca5..4f7fc66647a2817eb8f87133f4f937e382096097 100644 (file)
@@ -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
 }