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

@@ -227,4 +227,11 @@
return TOPIC_NOACTION
/datum/category_item/player_setup_item/proc/preference_mob()
return get_mob_by_key(pref.client_ckey)
if(!pref.client)
for(var/client/C)
if(C.ckey == pref.client_ckey)
pref.client = C
break
if(pref.client)
return pref.client.mob