From cfc7f7e01d085ea84a895b84cae8b2b98ee3ca0d Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Mon, 27 Nov 2023 15:15:21 -0500 Subject: [PATCH] =?UTF-8?q?=C3=87a=20s'ra=20pas=20long.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQCSim-srv/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQCSim-srv/connection.cpp b/SQCSim-srv/connection.cpp index 917a659..29d30f4 100644 --- a/SQCSim-srv/connection.cpp +++ b/SQCSim-srv/connection.cpp @@ -99,7 +99,8 @@ void Connection::Run(World* world) { in = m_input_vector.at(m_last_in + 1); last = m_input_vector.at(m_last_in); - el = (float)(in.timestamp - last.timestamp) / 1000.; + el = (double)(in.timestamp - last.timestamp) / 1000.; + std::cout << 1. / el << std::endl; player.get()->SetDirection(in.direction); player.get()->ApplyPhysics(player.get()->GetInput(in.keys.forward, in.keys.backward,