Skip to content

Commit

Permalink
Format Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-023 committed Sep 16, 2024
1 parent 60e2d5e commit 091143e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions code/modules/client/preferences_savefile.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define SAVEFILE_VERSION_MIN 8
#define SAVEFILE_VERSION_MAX 26
#define SAVEFILE_VERSION_MAX 27

//handles converting savefiles to new formats
//MAKE SURE YOU KEEP THIS UP TO DATE!
Expand Down Expand Up @@ -165,6 +165,13 @@
S["nanotrasen_relation"] >> relation
S["weyland_yutani_relation"] << relation

if(savefile_version < 27)
var/old_pref_armor
S["preferred_armor"] >> old_pref_armor
if((!old_pref_armor) in GLOB.armor_style_list)
preferred_armor = "Random"
S["preferred_armor"] << preferred_armor

savefile_version = SAVEFILE_VERSION_MAX
return 1

Expand Down Expand Up @@ -657,12 +664,6 @@
backbag = sanitize_integer(backbag, 1, length(GLOB.backbaglist), initial(backbag))
preferred_armor = sanitize_inlist(preferred_armor, GLOB.armor_style_list, "Random")
//b_type = sanitize_text(b_type, initial(b_type))
var/old_pref_armor
S["preferred_armor"] >> old_pref_armor

if((!old_pref_armor) in GLOB.armor_style_list)
preferred_armor = "Random"
S["preferred_armor"] << preferred_armor

platoon_name = platoon_name ? sanitize_text(platoon_name, initial(platoon_name)) : "Sun Riders"
dropship_camo = sanitize_inlist(dropship_camo, GLOB.dropship_camos, initial(dropship_camo))
Expand Down

0 comments on commit 091143e

Please sign in to comment.