From 64da8265a95d201a35d6eee1844abdf845ebce92 Mon Sep 17 00:00:00 2001 From: GinjaNinja32 Date: Sat, 11 Jul 2015 23:24:56 +0100 Subject: [PATCH] Attempts to fix old character save files in a slightly nicer way. Should mean there's no difference with converted characters, but you never know. --- code/modules/client/preferences_savefile.dm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 36ccdb145e..29e4089685 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -114,13 +114,23 @@ alternate_languages = list() if(!islist(alternate_languages)) if(client) - // Warn them that we just broke their languages + // Warn them that we (probably) just broke their languages client << "Your current character slot's languages list has been updated from an old version, and may not be what you expect." + if(alternate_languages in all_languages) alternate_languages = list(alternate_languages) else alternate_languages = list() + // try to give them their species language + var/datum/species/SP = all_species[species] + if(SP) + alternate_languages |= SP.language + alternate_languages |= SP.default_language + + // remove the Galcom that most races have as default_language + alternate_languages -= "Galactic Common" + //colors to be consolidated into hex strings (requires some work with dna code) S["hair_red"] >> r_hair S["hair_green"] >> g_hair @@ -357,4 +367,4 @@ #undef SAVEFILE_VERSION_MAX -#undef SAVEFILE_VERSION_MIN \ No newline at end of file +#undef SAVEFILE_VERSION_MIN