Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Fixes a bug with the scope getting stuck on mobs that get du…
…sted or ghost [MDB IGNORE] (#24404) * Fixes a bug with the scope getting stuck on mobs that get dusted or ghost (#78941) ## About The Pull Request If you ghost while mid-scope (or similarly, if you get dusted/your mob gets deleted) the mob's cursor would get all messed up due to some oversights. This just clears up some of these logic errors and ensures everything gets cleaned up properly. Fixes Skyrat-SS13/Skyrat-tg#24189 Fixes tgstation/tgstation#78756 ## Why It's Good For The Game Fixes a bug. I don't think scopes are even in use here but they are downstream. <details> <summary>Deleted and being dusted resets perspective and cursor properly</summary> ![dreamseeker_SSU4YnEK4n](https://github.com/Skyrat-SS13/Skyrat-tg/assets/13398309/dcaa5238-0067-4923-a956-24c6ba4aa2b3) ![dreamseeker_GZEhuSJSGS](https://github.com/Skyrat-SS13/Skyrat-tg/assets/13398309/2b88db21-6560-486d-94d3-9773fa543c50) </details> <details> <summary>So does ghosting</summary> ![dreamseeker_7n3uXZvDSI](https://github.com/tgstation/tgstation/assets/13398309/08f6272d-baba-4e8e-ae0b-db23331982f7) </details> ## Changelog :cl: fix: being killed or ghosting while being scoped will no longer cause the cursor offset to persist in a bugged state /:cl: --------- Co-authored-by: san7890 <the@ san7890.com> * Fixes a bug with the scope getting stuck on mobs that get dusted or ghost --------- Co-authored-by: Bloop <[email protected]> Co-authored-by: san7890 <the@ san7890.com>
- Loading branch information