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

move_towards the right spot #28242

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

FunnyMan3595
Copy link
Contributor

What Does This PR Do

Corrects a bug in /datum/move_loop/has_target/move_towards that made it go slightly off-track and fail to update its target after a diagonal move.
Fixes #28229

The issue here is that the code is trying to avoid recalculating on the first part of a diagonal move, but got the check backwards, so it only recalculates on the first part of a diagonal move.

Why It's Good For The Game

Accurate movement is good. Stuck meteors are bad.

Testing

Sent a meteor flying 5 tiles southeast without the PR. Missed by a tile and never corrected.
Sent a meteor flying 5 tiles southeast with the PR. Hit the target and despawned.


Declaration

  • I confirm that I either do not require pre-approval for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.

Changelog

🆑
fix: Meteors no longer get stuck after missing the station.
/:cl:

@FunnyMan3595 FunnyMan3595 mentioned this pull request Feb 4, 2025
1 task
@ParadiseSS13-Bot ParadiseSS13-Bot added the -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally label Feb 4, 2025
@1080pCat 1080pCat added the Fix This PR will fix an issue in the game label Feb 4, 2025
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting review This PR is awaiting review from the review team and removed -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally labels Feb 4, 2025
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting merge This PR is ready for merge and removed -Status: Awaiting review This PR is awaiting review from the review team labels Feb 4, 2025
@Burzah Burzah added this pull request to the merge queue Feb 5, 2025
Merged via the queue into ParadiseSS13:master with commit e9c8f5e Feb 5, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Status: Awaiting merge This PR is ready for merge Fix This PR will fix an issue in the game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Meteors get stuck on edges of Z-level
5 participants