Both enabled and disabled preferences are now stored.

The purpose is to ensure that new preferences that are in neither list get the appropriate enabled/disabled setting without having to utilize the savefile update path.

Also attempts to optimize the acquirement of the preference mob.
This commit is contained in:
PsiOmegaDelta
2016-03-07 18:33:36 +01:00
committed by Yoshax
parent 78abc7f790
commit f3cde3af01
3 changed files with 56 additions and 24 deletions

View File

@@ -109,6 +109,7 @@ datum/preferences
// OOC Metadata:
var/metadata = ""
var/client/client = null
var/client_ckey = null
// Communicator identity data
@@ -125,6 +126,7 @@ datum/preferences
gear = list()
if(istype(C))
client = C
client_ckey = C.ckey
if(!IsGuestKey(C.key))
load_path(C.ckey)