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

Fix flood rate calculation on 1.1.0 #8

Open
wants to merge 2 commits into
base: 1.1.0
Choose a base branch
from

Conversation

yellowberryHN
Copy link

I noticed there was an issue with how the flood rate was calculated, it is now correctly calculated as ±changeAmount every UPDATE_RATEms. The client doesn't need to have the rate hardcoded because the it only gets sent changes by the server at the rate of the server.

This does however change how the speed is scaled, so for example, a speed of 0.65 will change the elevation by 0.65 units every UPDATE_RATEms, but I think that's what you initially intended anyway.

I have tested these changes on my private server and they appear to be working properly, even with different update rates.

Also, fixed an issue with the automod script that prevented the file watcher from working on network drives.

@vulcan-dev
Copy link
Owner

Thank you for the pull request, I checked it out and it seems to be working, but I can't say for certain whether it's perfectly synced or not. I'll have to test it with some others when I have the time, I just want to be sure there's no issues with it and that everyone is synced

@vulcan-dev vulcan-dev self-assigned this Apr 3, 2024
@yellowberryHN
Copy link
Author

Sounds good! Let me know if you run into any issues.

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