Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Fix interpolation starting from incorrect source when disowned #391

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ namespace BeardedManStudios.Forge.Networking.Generated
if (_>:[1]:< == value)
return;

// Target is not used on the owner, as it does not interpolate, but we must still keep it up to date in
// case the owner changes, so we don't start interpolating from an old value from before we were owner.
>:[1]:<Interpolation.target = value;

// Mark the field as dirty for the network to transmit
_dirtyFields[>:[6]:<] |= >:[5]:<;
_>:[1]:< = value;
Expand Down