From a77376977aa3e63bf7dcb556251509895dc8bb77 Mon Sep 17 00:00:00 2001 From: Names Are Hard Date: Sun, 26 Jan 2020 16:29:16 -0800 Subject: [PATCH] Fix phobia quirk preferences not being saved (#49005) Phobias are finally saved properly in character prefs, whoops. --- code/modules/client/preferences_savefile.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 3b8237dde68..6231006c5bb 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -46,7 +46,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car key_bindings = (hotkeys) ? deepCopyList(GLOB.hotkey_keybinding_list_by_key) : deepCopyList(GLOB.classic_keybinding_list_by_key) parent.update_movement_keys(src) to_chat(parent, "Empty keybindings, setting default to [hotkeys ? "Hotkey" : "Classic"] mode") - + if(current_version < 30) if(clientfps == 0) clientfps = 60 @@ -329,6 +329,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car S["backpack"] >> backpack S["jumpsuit_style"] >> jumpsuit_style S["uplink_loc"] >> uplink_spawn_loc + S["phobia"] >> phobia S["randomise"] >> randomise S["feature_mcolor"] >> features["mcolor"] S["feature_ethcolor"] >> features["ethcolor"] @@ -468,6 +469,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car WRITE_FILE(S["uplink_loc"] , uplink_spawn_loc) WRITE_FILE(S["randomise"] , randomise) WRITE_FILE(S["species"] , pref_species.id) + WRITE_FILE(S["phobia"], phobia) WRITE_FILE(S["feature_mcolor"] , features["mcolor"]) WRITE_FILE(S["feature_ethcolor"] , features["ethcolor"]) WRITE_FILE(S["feature_lizard_tail"] , features["tail_lizard"])