From 8c9c061bd05ed2a0fbde3d9970f67784bde98606 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Fri, 12 Feb 2016 00:27:30 +0000 Subject: [PATCH] Adds auto conversion of older backbag options to the new options. Fixes erroneous indenting of species correction (Species correction should happen in ALL versions, not just those below version 9 --- code/modules/client/preferences_savefile.dm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 49c33ce19dd..b35f80e7e28 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -166,9 +166,17 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car underwear = "Tankini" if(13) underwear = "Nude" - if(!(pref_species in species_list)) - pref_species = new /datum/species/human() - return + + if(!(pref_species in species_list)) + pref_species = new /datum/species/human() + + if(current_version < 13 || !istext(backbag)) + switch(backbag) + if(2) + backbag = GSATCHEL + else + backbag = GBACKPACK + /datum/preferences/proc/load_path(ckey,filename="preferences.sav") if(!ckey)