NetworkTransformBase: Eliminate redundant code

This commit is contained in:
MrGadget 2024-04-10 07:45:44 -04:00
parent 64b6e5863f
commit 6539bbc136

View File

@ -332,8 +332,7 @@ protected virtual void OnTeleport(Vector3 destination)
// but server's last delta will have been reset, causing offsets. // but server's last delta will have been reset, causing offsets.
// //
// instead, simply clear snapshots. // instead, simply clear snapshots.
serverSnapshots.Clear(); ResetState();
clientSnapshots.Clear();
// TODO // TODO
// what if we still receive a snapshot from before the interpolation? // what if we still receive a snapshot from before the interpolation?
@ -358,8 +357,7 @@ protected virtual void OnTeleport(Vector3 destination, Quaternion rotation)
// but server's last delta will have been reset, causing offsets. // but server's last delta will have been reset, causing offsets.
// //
// instead, simply clear snapshots. // instead, simply clear snapshots.
serverSnapshots.Clear(); ResetState();
clientSnapshots.Clear();
// TODO // TODO
// what if we still receive a snapshot from before the interpolation? // what if we still receive a snapshot from before the interpolation?