Skip to content

fix: always send temp move speed on telejump - #157

Open
reldo-dev wants to merge 1 commit into
OpenRune:mainfrom
reldo-dev:pr/telejump-move-speed
Open

fix: always send temp move speed on telejump#157
reldo-dev wants to merge 1 commit into
OpenRune:mainfrom
reldo-dev:pr/telejump-move-speed

Conversation

@reldo-dev

@reldo-dev reldo-dev commented Aug 13, 2026

Copy link
Copy Markdown

Teleporting before taking a step after logging in leaves the player walking to the destination instead of jumping to it, as reported in #151.

telejump resolves to MoveSpeed.Stationary (127), which is what tells the client to snap rather than interpolate. It was only transmitted when the resolved speed differed from cachedMoveSpeed, and that stays Stationary until PlayerMovementProcessor consumes the player's first route, so the marker was dropped for anyone who had not moved yet. Taking a single step assigns Walk, which is why walking first appears to fix it.

Verified on revision 240 by logging the values at the call site while teleporting in a client. Before the change, a teleport with no prior movement resolved Stationary against a cached Stationary and skipped the block; after it, the same teleport transmits. A teleport taken after one step transmitted in both cases.

How visible this is depends on the distance: without the marker the client interpolates towards the destination, so a short teleport looks like a slow slide and a level change drops the plane first, while a teleport outside the loaded scene still snaps because the client falls back to a hard reset.

Fixes #151.

Telejump resolves to MoveSpeed.Stationary (127), which is what tells the
client to snap to the destination instead of walking to it. It was only sent
when the resolved speed differed from cachedMoveSpeed, but that stays
Stationary until the player's first move, so teleporting before taking a step
never sends it. Taking one step first assigns Walk and hides the bug.

Fixes OpenRune#151.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teleportation bug

1 participant