Fixes un-sanitized preferences runtimes

* Puts back in code that sanitized preferences after loading, it was overwritten in polaris sync commit 3f1e5c80f2
* Also removes a VOREStation Edit comment on lines that were no longer different from Polaris, introduced at the same time.
* Fixes Runtime in 02_language.dm,21: Cannot read null.language
This commit is contained in:
Leshana
2017-06-12 23:20:33 -04:00
parent c632366c26
commit 9c32a6dc0a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -243,6 +243,7 @@ datum/preferences
load_preferences()
load_character()
attempt_vr(client.prefs_vr,"load_vore","") //VOREStation Edit
sanitize_preferences()
else if(href_list["load"])
if(!IsGuestKey(usr.key))
open_load_dialog(usr)
@@ -250,6 +251,7 @@ datum/preferences
else if(href_list["changeslot"])
load_character(text2num(href_list["changeslot"]))
attempt_vr(client.prefs_vr,"load_vore","") //VOREStation Edit
sanitize_preferences()
close_load_dialog(usr)
else if(href_list["resetslot"])
if("No" == alert("This will reset the current slot. Continue?", "Reset current slot?", "No", "Yes"))