From my testing, _rigidBodyDefaultOwner has already changed to the new authoritative user before userLeft() is called. This means that the actors owned by the user that just left changes ownership to the new authoritative user without the actor being orphaned.
However, if an actor were orphaned, it wouldn't properly update ownership when a new authoritative user is assigned. This fix ensures that ownership is properly changed.
From my testing,
_rigidBodyDefaultOwner
has already changed to the new authoritative user beforeuserLeft()
is called. This means that the actors owned by the user that just left changes ownership to the new authoritative user without the actor being orphaned.However, if an actor were orphaned, it wouldn't properly update ownership when a new authoritative user is assigned. This fix ensures that ownership is properly changed.
Related issue #742
This PR is required for PR #744