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 for dummy rotation in character setup. #3699

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

Segrain
Copy link
Contributor

@Segrain Segrain commented Jun 23, 2023

About the pull request

Followup to #3516. That PR changed the general click behaviour from if (click(A, mods) | A.clicked(src, mods, location, params)) to use || instead. And in Byond, that means quick resolution: if left side is true, then right side is not evaluated - thus not executed - at all. I am not sure what exactly was that meant to address (or whether it was intentional at all, for that matter), but as it happens, /mob/new_player/click() is set to always simply return true while all the code for those arrows is in their clicked(). Solution is obvious then.

P.S. On second thought, reading the PR does explain the PR. But quick resolution is not exactly intuitive, and even though it is probably highly unlikely to ever change, there is probably no need to rely on it so implicitly. While I have the file open anyway, might as well make returning after the left half alone explicit.

Explain why it's good for the game

Is fix.

Changelog

🆑
fix: Preview dummy in character setup once again can be rotated.
/:cl:

@github-actions github-actions bot added the Fix Fix one bug, make ten more label Jun 23, 2023
@harryob harryob added this pull request to the merge queue Jun 24, 2023
Merged via the queue into cmss13-devs:master with commit 71455d4 Jun 24, 2023
27 checks passed
cm13-github added a commit that referenced this pull request Jun 24, 2023
github-actions bot added a commit that referenced this pull request Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants