diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index fdd769632c..e03b690313 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -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) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 812723b8fe..323398b595 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -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")