]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix grave digging sound indefinitely playing if dug by aghost. (#26420)
authornikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
Sun, 31 Mar 2024 08:49:46 +0000 (08:49 +0000)
committerGitHub <noreply@github.com>
Sun, 31 Mar 2024 08:49:46 +0000 (19:49 +1100)
commit83374935262265679e554780bcd42017238f059a
tree78ad521917ecae3ef9ce2a32375347350f013030
parentd1ad6d912643e223ed3717916826c68d3a3ac5e5
Fix grave digging sound indefinitely playing if dug by aghost. (#26420)

Admins bypass doafters. As such, the code that runs on doafter
completion is ran before the sound is actually created. This then leads
to the sound never being stopped, and as such it would infinitely play.

This commit gets around the issue by manually stopping the sound should
the doafter fail to start. If we could be sure that the doafter would
never fail, then we could just move the call to StartDigging above
starting the doafter but this is currently not possible.

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Shared/Burial/BurialSystem.cs