[PR #6611] [MERGED] Boat authority cases: a rider who leaves, waits for the boat to stop, and boards again #6980

Closed
opened 2026-11-03 06:30:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6611
Author: @MSedgeMC
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/boat-reboard-cases


📝 Commits (1)

  • f693be2 Boat authority cases: a rider who leaves, waits for the boat to stop, and boards again

📊 Changes

1 file changed (+13 additions, -0 deletions)

View changed files

📝 tools/test_boat_authority_parity.py (+13 -0)

📄 Description

Vanilla's AbstractBoat.tick zeroes a boat's cached deltaMovement and deltaRotation on every tick whose movement this client does not own, so a boat that was left moving carries nothing into the next time the player boards it.

Horizon matches vanilla bit-for-bit on this: the cases added here leave the boat for 5, 25 and 60 empty ticks with spins 0, 0.125 and -17 and velocities of both signs, board again for 1, 5 and 12 ticks, and also cover a boat that was never driven before it was boarded - so the boat tick is not where the "keeps moving after getting back in" report (#6589) comes from.

Proven: on the build VM, cd ~/.wt/boat1 && python3 tools/parity.py boat_authority → PASS boat_authority, 1 passed 0 failed, every tick state of the original cases and the 40 new stop-and-reboard cases identical.

Not proven: the client's handover of the boat from the server's packets - the stand-in level has no server, so a boat whose position and motion arrive over the network is not modelled here; a two-client LAN run that samples the boat's position after a full stop and after re-boarding is what would pin #6589 if it is real.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6611 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/boat-reboard-cases` --- ### 📝 Commits (1) - [`f693be2`](https://github.com/horizon-rust/horizon/commit/f693be23639141a2c4e69fbd1d01acec005a5166) Boat authority cases: a rider who leaves, waits for the boat to stop, and boards again ### 📊 Changes **1 file changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_boat_authority_parity.py` (+13 -0) </details> ### 📄 Description Vanilla's `AbstractBoat.tick` zeroes a boat's cached `deltaMovement` and `deltaRotation` on every tick whose movement this client does not own, so a boat that was left moving carries nothing into the next time the player boards it. Horizon matches vanilla bit-for-bit on this: the cases added here leave the boat for 5, 25 and 60 empty ticks with spins 0, 0.125 and -17 and velocities of both signs, board again for 1, 5 and 12 ticks, and also cover a boat that was never driven before it was boarded - so the boat tick is not where the "keeps moving after getting back in" report (#6589) comes from. **Proven:** on the build VM, `cd ~/.wt/boat1 && python3 tools/parity.py boat_authority` → `PASS boat_authority`, 1 passed 0 failed, every tick state of the original cases and the 40 new stop-and-reboard cases identical. **Not proven:** the client's handover of the boat from the server's packets - the stand-in level has no server, so a boat whose position and motion arrive over the network is not modelled here; a two-client LAN run that samples the boat's position after a full stop and after re-boarding is what would pin #6589 if it is real. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:30:36 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6980
No description provided.