Improvements and fixes for multiplayer networking

This commit is contained in:
Wojciech Figat
2022-11-25 16:50:30 +01:00
parent 63c4eb17e4
commit b4fdb0cc26
3 changed files with 41 additions and 34 deletions

View File

@@ -139,6 +139,10 @@ void NetworkTransform::OnUpdate()
Transform::Lerp(b0.Value, b1.Value, alpha, transform);
Set(transform);
}
else if (_buffer.Count() == 1 && _buffer[0].Timestamp <= gameTime)
{
Set(_buffer[0].Value);
}
}
}