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

Fixes xeno tunnel tracking #5536

Merged
merged 7 commits into from
Jan 26, 2024
Merged

Conversation

SabreML
Copy link
Member

@SabreML SabreML commented Jan 24, 2024

About the pull request

I swear I do actually test my PRs 😢.

Fixes #5529 by refactoring the 'Queen locator' to track targets with /datum/weakrefs, rather than their index in a global list.

Explain why it's good for the game

Bugfix. (Honestly no idea how I missed this one)

It makes the code much simpler and easier to understand (arguably).

Testing Photographs and Procedure

Screenshots & Videos
dreamseeker_AZGhRTwynV.mp4

Changelog

🆑
fix: Fixed the xeno 'queen locator' giving the wrong location when a tunnel was selected.
/:cl:

@github-actions github-actions bot added the Fix Fix one bug, make ten more label Jan 24, 2024
@SabreML
Copy link
Member Author

SabreML commented Jan 24, 2024

I haven't quite finished testing this one yet since I had to prepare food (I melted a spatula!), so it's drafted for a little while.

I misunderstood how the `xeno_leader_list` works. (It isn't associative, just fixed length.)
@SabreML SabreML marked this pull request as ready for review January 24, 2024 16:27
code/_onclick/hud/screen_objects.dm Outdated Show resolved Hide resolved
Plus a fix for if someone got de-leadered
Rather than the tracker going blank for one life tick if it can't find `tracking_atom`, this makes it immediately swap to the queen.
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

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

Code looks fine. Not currently heard or seen any issues with it TM'd either.

@Drulikar Drulikar added this pull request to the merge queue Jan 26, 2024
Merged via the queue into cmss13-devs:master with commit 7e13948 Jan 26, 2024
26 checks passed
cm13-github added a commit that referenced this pull request Jan 26, 2024
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.

Tunnel tracker does not track the tunnel you click on
2 participants