Restore remote locomotion after fishing returns
This commit is contained in:
parent
4196cda1d5
commit
cd00f3c55e
3 changed files with 58 additions and 0 deletions
|
|
@ -194,6 +194,18 @@ func _run_host() -> void:
|
|||
):
|
||||
await process_frame
|
||||
assert(remote_avatar.is_retract_visual_complete())
|
||||
var observer_cleanup_deadline: int = Time.get_ticks_msec() + 3000
|
||||
while (
|
||||
Time.get_ticks_msec() < observer_cleanup_deadline
|
||||
and int(remote_avatar.get("_fishing_visual_phase"))
|
||||
!= Player.FishingVisualPhase.NONE
|
||||
):
|
||||
await process_frame
|
||||
assert(
|
||||
int(remote_avatar.get("_fishing_visual_phase"))
|
||||
== Player.FishingVisualPhase.NONE
|
||||
)
|
||||
assert(remote_animation_player.assigned_animation != &"retract_sit")
|
||||
# Give the client that owns the same presentation a frame boundary to finish
|
||||
# local cleanup before the host intentionally tears down this test session.
|
||||
for _frame: int in 4:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue