sanity fix

This commit is contained in:
alberyk
2022-01-21 23:58:41 -03:00
parent 30a1c280ba
commit 1b42a98f4a
4 changed files with 24 additions and 37 deletions

View File

@@ -137,6 +137,13 @@
if(!is_in_playable_species)
pref.species = SPECIES_HUMAN
var/list/spawnkeys = list()
for(var/S in SSatlas.spawn_locations)
spawnkeys += S
if(!(pref.spawnpoint in spawnkeys))
pref.spawnpoint = current_map.default_spawn
pref.age = sanitize_integer(text2num(pref.age), pref.getMinAge(), pref.getMaxAge(), initial(pref.age))
pref.gender = sanitize_gender(pref.gender, pref.species)
pref.pronouns = sanitize_pronouns(pref.pronouns, pref.species, pref.gender)