Skip to content

Commit

Permalink
[CVRSuperMario64] Fixed remote Marios getting stuck in an animation a…
Browse files Browse the repository at this point in the history
…fter using a teleport.
  • Loading branch information
kafeijao committed Mar 14, 2023
1 parent 5595cf0 commit 777e483
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CVRSuperMario64/Components/CVRSM64Mario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,8 @@ public void ContextFixedUpdateSynced(List<CVRSM64Mario> marios) {
}

// Trigger teleport for remotes
if (Utils.IsTeleporting(syncedFlags) != Utils.IsTeleporting(GetCurrentState().flags)) {
if (Utils.IsTeleporting(syncedFlags)) TeleportStart();
else TeleportEnd();
if (Utils.IsTeleporting(syncedFlags) && Time.time > _startedTeleporting + 5 * CVRSM64Teleporter.TeleportDuration) {
_startedTeleporting = Time.time;
}
}

Expand Down

0 comments on commit 777e483

Please sign in to comment.