]> git.localhorst.tv Git - blank.git/blobdiff - src/net/net.cpp
add option to skip tests requiring a display
[blank.git] / src / net / net.cpp
index 7de901e31f58b7f842461e2a2414e677db8ceca5..1dcb9d0e696cbf479f9c427db0f3f5eb12e161cc 100644 (file)
@@ -4,7 +4,7 @@
 #include "io.hpp"
 #include "Packet.hpp"
 
-#include "../app/init.hpp"
+#include "../app/error.hpp"
 #include "../geometry/const.hpp"
 #include "../model/Model.hpp"
 #include "../world/Entity.hpp"
@@ -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
 }