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 TouchScreenGUI ignoring server-sent pitch changes #14128

Merged
merged 1 commit into from Dec 20, 2023

Conversation

grorp
Copy link
Member

@grorp grorp commented Dec 19, 2023

This PR changes TouchScreenGUI to store a pitch difference instead of an absolute pitch value, like it is already done for yaw. This is necessary so that server-sent pitch changes (player:set_look_vertical(radians)) are applied.

To do

This PR is a Ready for Review.

How to test

Install Worldedit and verify that this command works:

//lua minetest.get_connected_players()[1]:set_look_vertical(-math.pi / 2)

@sfan5 sfan5 merged commit 04dc4a1 into minetest:master Dec 20, 2023
13 checks passed
@grorp grorp deleted the fix-touchscreengui-pitch branch December 20, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants