mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[MIRROR] Fix ambience pref not being toggleable in game (#28245)
* Fix ambience pref not being toggleable in game (#84087) ## About The Pull Request The only time people were added to the ambience SS's list is when you log in, meaning if you toggle the preference on/off mid game, it does nothing. Fixes #61495 ## Changelog 🆑 Melbert fix: Enabling or disabling ambience mid round will properly enable or disable ambience qol: Added descriptions differentiating "Ship ambience" from "ambience" /🆑 * Fix ambience pref not being toggleable in game --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
savefile_key = "sound_ambience"
|
||||
savefile_identifier = PREFERENCE_PLAYER
|
||||
|
||||
/datum/preference/toggle/sound_ambience/apply_to_client(client/client, value)
|
||||
client.update_ambience_pref()
|
||||
|
||||
/// Controls hearing announcement sounds
|
||||
/datum/preference/toggle/sound_announcements
|
||||
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
||||
|
||||
Reference in New Issue
Block a user