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: Restore Desert flags wind speed #2600

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Mar 8, 2023

After the resource changes, the flags in Desert Colossus and Haunted Wasteland would briefly appear to move, and then would stop moving entirely.

Looking into, the wind speed value was negative, and the flags have a check for when wind speed is negative they overwrite it to 0.

Comparing to the old resource type this is because the wind speed was original a uint8_t but with the new resource changes it was turned into a int8_t, causing the wind value to be negative.

This PR switches the wind speed type back to a unit8_t which fixes the flags again.

I compared the values returned from 5.1.4 to this PR and they are identical for all the wind values now.

Fixes #2447

Build Artifacts

@briaguya-ai briaguya-ai merged commit 60f4f71 into HarbourMasters:develop-khan Mar 8, 2023
@Archez Archez deleted the fix-flag-wind branch March 8, 2023 18:11
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.

None yet

2 participants