Ça s'ra pas long.

This commit is contained in:
MarcEricMartel 2023-11-27 15:15:21 -05:00
parent 0b5c30b693
commit cfc7f7e01d

View File

@ -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,