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 local animations not resetting #13638

Merged
merged 1 commit into from Jul 2, 2023
Merged

Conversation

appgurueu
Copy link
Contributor

Converts LocalPlayerAnimation to a scoped enum to prevent such bugs in the future

Seems to fix minetest/minetest_game#3042

Caveat: I can't confirm that the -1 was indeed intended to be NO_ANIM, but this makes sense and works fine in testing

Converts `LocalPlayerAnimation` to a scoped enum to prevent such bugs in the future
@@ -1504,7 +1505,7 @@ void Client::handleCommand_LocalPlayerAnimations(NetworkPacket* pkt)
*pkt >> player->local_animations[3];
*pkt >> player->local_animation_speed;

player->last_animation = -1;
Copy link
Contributor Author

@appgurueu appgurueu Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the crucial change. If this change is fine, the PR is fine. The rest is just conversion to scoped enum.

@sfan5
Copy link
Member

sfan5 commented Jul 1, 2023

any idea when this bug was added?

@SmallJoker
Copy link
Member

@sfan5 possibly added in f66ed2c

@sfan5 sfan5 added Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines and removed @ Client rendering labels Jul 1, 2023
@sfan5 sfan5 merged commit 25ef8f3 into minetest:master Jul 2, 2023
13 checks passed
@appgurueu appgurueu deleted the fix-local-anims branch July 2, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug One approval ✅ ◻️ Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting the player animation silently fails
4 participants