[MIRROR] Fixes toggling ship ambience not doing anything until you enter an area with a different kind of ambient sound (#28463)

* Fixes toggling ship ambience not doing anything until you enter an area with a different kind of ambient sound (#84204)

🆑 ShizCalev
fix: Toggling ambient ship sounds will now instantly turn it on/off.
/🆑

* Fixes toggling ship ambience not doing anything until you enter an area with a different kind of ambient sound

---------

Co-authored-by: Afevis <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-29 10:49:33 +05:30
committed by GitHub
co-authored by Afevis
parent 67501fd4ab
commit 2f69429fe2
@@ -103,6 +103,9 @@
savefile_key = "sound_ship_ambience"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/sound_ship_ambience/apply_to_client_updated(client/client, value)
client.mob.refresh_looping_ambience()
/// Controls hearing elevator music
/datum/preference/toggle/sound_elevator
category = PREFERENCE_CATEGORY_GAME_PREFERENCES