mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 23:50:22 +02:00
Avoid movement jitter (#13093)
This allows the client and server to agree on the position of objects and attached players even when there is lag.
This commit is contained in:
@ -577,8 +577,8 @@ void Server::stop()
|
||||
void Server::step(float dtime)
|
||||
{
|
||||
// Limit a bit
|
||||
if (dtime > 2.0)
|
||||
dtime = 2.0;
|
||||
if (dtime > DTIME_LIMIT)
|
||||
dtime = DTIME_LIMIT;
|
||||
{
|
||||
MutexAutoLock lock(m_step_dtime_mutex);
|
||||
m_step_dtime += dtime;
|
||||
|
Reference in New Issue
Block a user