]> git.localhorst.tv Git - blank.git/blobdiff - src/server/net.cpp
glm backwards compatibility
[blank.git] / src / server / net.cpp
index e8325da1bd4ea1f0cfd08f0eda206d2e845e2f0e..e210fef4ff1e7db6cf4a0a2e51f8b0a29f514bb6 100644 (file)
@@ -355,7 +355,7 @@ void ClientConnection::SendUpdates() {
 void ClientConnection::CheckPlayerFix() {
        // player_update_state's position holds the client's most recent prediction
        glm::vec3 diff = player_update_state.Diff(PlayerEntity().GetState());
-       float dist_squared = dot(diff, diff);
+       float dist_squared = glm::length2(diff);
 
        // if client's prediction is off by more than 1cm, send
        // our (authoritative) state back so it can fix it