Skip to content

Commit

Permalink
Revert "Merge pull request #140 from Bird-Lounge/language-fixening"
Browse files Browse the repository at this point in the history
This reverts commit e090de9, reversing
changes made to f5f28ae.
  • Loading branch information
carpotoxin committed Oct 12, 2024
1 parent 3287b2a commit 379bedc
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car

//Quirks
all_quirks = save_data?["all_quirks"]
/// DOPPLER SHIFT ADDITION BEGIN
var/list/save_languages = SANITIZE_LIST(save_data["languages"])
for(var/language in save_languages)
var/value = save_languages[language]
save_languages -= language

if(istext(language))
language = _text2path(language)
save_languages[language] = value
languages = save_languages
/// DOPPLER SHIFT ADDITION END

//try to fix any outdated data if necessary
//preference updating will handle saving the updated data for us.
Expand All @@ -328,7 +317,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
randomise = SANITIZE_LIST(randomise)
job_preferences = SANITIZE_LIST(job_preferences)
all_quirks = SANITIZE_LIST(all_quirks)
languages = SANITIZE_LIST(languages) /// DOPPLER SHIFT ADDITION

//Validate job prefs
for(var/j in job_preferences)
Expand All @@ -337,7 +325,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car

all_quirks = SSquirks.filter_invalid_quirks(SANITIZE_LIST(all_quirks))
validate_quirks()
sanitize_languages() /// DOPPLER SHIFT ADDITION

return TRUE

Expand Down Expand Up @@ -378,7 +365,6 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car

//Quirks
save_data["all_quirks"] = all_quirks
save_data["languages"] = languages /// DOPPLER SHIFT ADDITION - we might want to migrate this

return TRUE

Expand Down

0 comments on commit 379bedc

Please sign in to comment.