Skyrat-SS13 / Skyrat-tg

A Skyrat downstream of /tg/station SS13.
GNU Affero General Public License v3.0
121 stars 686 forks source link

[MIRROR] Makes map view hiding a bit more robust against unusual circumstances #29455

Closed SkyratBot closed 3 weeks ago

SkyratBot commented 3 weeks ago

Original PR: https://github.com/tgstation/tgstation/pull/85900

While in the middle of a destroy chain the mob can no longer be associated with the client you need to clear huds from. This allows you to just pass a client into a different proc and has some more error checking to hopefully avoid visible issues for players if something goes wrong.

This fixes a runtime I cam across while working on something else.