Reduce max age from INFINITY to SHORT_REAL_LIMIT
This effectively reduces the cap to 16777216.
This commit is contained in:
@@ -1748,7 +1748,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
if("age")
|
||||
var/new_age = input(user, "Choose your character's age:\n(Minimum: [AGE_MIN])", "Character Preference") as num|null
|
||||
if(new_age)
|
||||
age = max(min( round(text2num(new_age)), INFINITY),AGE_MIN)
|
||||
age = max(min( round(text2num(new_age)), SHORT_REAL_LIMIT),AGE_MIN)
|
||||
|
||||
if("security_records")
|
||||
var/rec = stripped_multiline_input(usr, "Set your security record note section. This should be IC!", "Security Records", html_decode(security_records), MAX_FLAVOR_LEN, TRUE)
|
||||
|
||||
@@ -905,7 +905,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
shirt_color = sanitize_hexcolor(shirt_color, 6, FALSE, initial(shirt_color))
|
||||
socks = sanitize_inlist(socks, GLOB.socks_list)
|
||||
socks_color = sanitize_hexcolor(socks_color, 6, FALSE, initial(socks_color))
|
||||
age = sanitize_integer(age, AGE_MIN, INFINITY, initial(age))
|
||||
age = sanitize_integer(age, AGE_MIN, SHORT_REAL_LIMIT, initial(age))
|
||||
hair_color = sanitize_hexcolor(hair_color, 6, FALSE)
|
||||
facial_hair_color = sanitize_hexcolor(facial_hair_color, 6, FALSE)
|
||||
grad_style = sanitize_inlist(grad_style, GLOB.hair_gradients_list, "None")
|
||||
|
||||
Reference in New Issue
Block a user