fix(net): fix StepLocalPredictionTick and WalkerSample copy in RemoteArenaSession
This commit is contained in:
parent
cca6ad821b
commit
8921afe9ca
1 changed files with 1 additions and 5 deletions
|
|
@ -1112,10 +1112,6 @@ namespace RustToDust.Net
|
|||
local.SnapPreviousPose();
|
||||
if (_predWalker is { Initialized: true })
|
||||
{
|
||||
if (local.IsGroundedActive && !chassisChanged && deltaPos.Length() > HardSnapThresholdM)
|
||||
{
|
||||
_predWalker.InitializePose(newPredPos, newPredRot, local.Grid.Spec.MassKg, _viewState.Terrain, _predWorld, _predBody?.Lane ?? -1);
|
||||
}
|
||||
_predWalker.SnapshotPrev();
|
||||
}
|
||||
}
|
||||
|
|
@ -1539,7 +1535,7 @@ namespace RustToDust.Net
|
|||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
ref readonly var prevSnap = ref list[^1].Snap;
|
||||
var prevSnap = list[^1].Snap;
|
||||
if (prevSnap.LegCount != snap.LegCount ||
|
||||
prevSnap.IsArachnidUp != snap.IsArachnidUp ||
|
||||
prevSnap.IsDigitigrade != snap.IsDigitigrade ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue