Species selection wasn't saving properly. Why? Because species_list used id as a reference, but roundstart_species used name.

THESE AREN'T THE SAME THINGS.

Both lists now use id, and savefiles will properly look for/save said ids
This commit is contained in:
Incoming
2015-11-18 22:29:20 -05:00
parent a997a0548a
commit cb5401467d
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -235,10 +235,10 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
return 0
//Species
var/species_name
S["species"] >> species_name
if(config.mutant_races && species_name && (species_name in roundstart_species))
var/newtype = roundstart_species[species_name]
var/species_id
S["species"] >> species_id
if(config.mutant_races && species_id && (species_id in roundstart_species))
var/newtype = roundstart_species[species_id]
pref_species = new newtype()
else
pref_species = new /datum/species/human()
@@ -375,7 +375,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S["undershirt"] << undershirt
S["socks"] << socks
S["backbag"] << backbag
S["species"] << pref_species.name
S["species"] << pref_species.id
S["feature_mcolor"] << features["mcolor"]
S["feature_lizard_tail"] << features["tail_lizard"]
S["feature_human_tail"] << features["tail_human"]