some more globals (#19098)

* some more globals

* .
This commit is contained in:
Kashargul
2026-01-29 18:21:58 +01:00
committed by GitHub
parent 24e68536bc
commit fdfb49012b
50 changed files with 164 additions and 176 deletions
+2 -2
View File
@@ -282,14 +282,14 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
GLOB.tickets.ClientLogin(src)
//preferences datum - also holds some persistant data for the client (because we may as well keep these datums to a minimum)
prefs = preferences_datums[ckey]
prefs = GLOB.preferences_datums[ckey]
if(prefs)
prefs.client = src
prefs.load_savefile() // just to make sure we have the latest data
prefs.apply_all_client_preferences()
else
prefs = new /datum/preferences(src)
preferences_datums[ckey] = prefs
GLOB.preferences_datums[ckey] = prefs
prefs.last_ip = address //these are gonna be used for banning
prefs.last_id = computer_id //these are gonna be used for banning
@@ -1,6 +1,3 @@
// Not actually used; just forces this into the RSC for TGUI.
var/const/preview_icons = 'icons/mob/human_races/preview.dmi'
/datum/preferences
var/equip_preview_mob = EQUIP_PREVIEW_ALL
var/animations_toggle = FALSE
+1 -1
View File
@@ -1,4 +1,4 @@
var/list/preferences_datums = list()
GLOBAL_LIST_EMPTY(preferences_datums)
/datum/preferences
/// The path to the general savefile for this datum