From 5f116120789e9586c03c110ba105a56618c00132 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Thu, 2 Jul 2020 03:00:35 -0700 Subject: [PATCH] Update preferences_savefile.dm --- code/modules/client/preferences_savefile.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index aa1b6f801b..efcba9bd3e 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -325,6 +325,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car modless_key_bindings = sanitize_islist(modless_key_bindings, list()) verify_keybindings_valid() // one of these days this will runtime and you'll be glad that i put it in a different proc so no one gets their saves wiped + sanitize_speech_and_tongue() return 1 @@ -346,6 +347,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car if(!GLOB.keybindings_by_name[bindname]) modless_key_bindings -= key +/datum/preferences/proc/sanitize_speech_and_tongue() + if(!(custom_speech_verb in GLOB.speech_verbs)) + custom_speech_verb = GLOB.speech_verbs[1] + if(!(custom_tongue in GLOB.roundstart_tongues)) + custom_tongue = GLOB.roundstart_tongues[1] + /datum/preferences/proc/save_preferences() if(!path) return 0