Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Boats] Prevent client update while on boat if boat turning #1343

Merged
merged 1 commit into from
May 10, 2021

Conversation

noudess
Copy link
Contributor

@noudess noudess commented May 4, 2021

Updates for client positions while a client is on a boat are received as x/y offsets based on the boats current heading.

When the server rotates the boat, it updates Heading in the boat server instance. This means all future updates from the client will be processed according to that new heading.

Since the server only approximates rotation progress, there will be errors if we use client updates for PCs on boats while the boat is turning.

This patch tosses out the updates for the client while the boat he/she is on is turning, eliminating that error.

@ghost
Copy link

ghost commented May 5, 2021

In the game the patch works very well. After 2 hours of boating with three accounts I could not notice any problems.

@Akkadius Akkadius merged commit b335568 into EQEmu:master May 10, 2021
Akkadius added a commit that referenced this pull request May 10, 2021
@noudess noudess deleted the boats branch May 10, 2021 20:00
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.

2 participants