From 2f69429fe21ff324d9e6b1950aa0d89237bbde34 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 29 Jun 2024 07:19:33 +0200 Subject: [PATCH] [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) :cl: ShizCalev fix: Toggling ambient ship sounds will now instantly turn it on/off. /:cl: * Fixes toggling ship ambience not doing anything until you enter an area with a different kind of ambient sound --------- Co-authored-by: Afevis --- code/modules/client/preferences/sounds.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/client/preferences/sounds.dm b/code/modules/client/preferences/sounds.dm index ae3a700ec39..81263de677b 100644 --- a/code/modules/client/preferences/sounds.dm +++ b/code/modules/client/preferences/sounds.dm @@ -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