fix runechat offset (#17510)

* don't double this

* .

* urg

* always use if defined

* eh

* tgui window from tg

* skip on char select

* rh

* .

* move to config
This commit is contained in:
Kashargul
2025-04-11 17:10:37 +02:00
committed by GitHub
parent 55306c47c3
commit a97ded5b3b
10 changed files with 78 additions and 41 deletions
+2 -2
View File
@@ -292,7 +292,7 @@ var/list/preferences_datums = list()
to_chat(usr,span_notice("Character [player_setup?.preferences?.real_name] saved!"))
save_preferences()
else if(href_list["reload"])
load_preferences()
load_preferences(TRUE)
load_character()
attempt_vr(client.prefs_vr,"load_vore","")
sanitize_preferences()
@@ -390,7 +390,7 @@ var/list/preferences_datums = list()
error("Player picked [choice] slot to load, but that wasn't one we sent.")
return
load_preferences()
load_preferences(TRUE)
load_character(slotnum)
attempt_vr(user.client?.prefs_vr,"load_vore","")
sanitize_preferences()
+3 -2
View File
@@ -131,7 +131,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
savefile.set_entry("lastnews", lastnews)
savefile.set_entry("lastlorenews", lastlorenews)
/datum/preferences/proc/load_preferences()
/datum/preferences/proc/load_preferences(skip_client)
if(!savefile)
stack_trace("Attempted to load the preferences of [client] without a savefile; did you forget to call load_savefile?")
load_savefile()
@@ -147,7 +147,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
fcopy(savefile.path, bacpath) //byond helpfully lets you use a savefile for the first arg.
return FALSE
apply_all_client_preferences()
if(!skip_client)
apply_all_client_preferences()
load_early_prefs()
sanitize_early_prefs()