Merge pull request #1278 from Citadel-Station-13/GreytideStationwide

[s] Fixes all access bug
This commit is contained in:
LetterJay
2017-05-29 01:33:38 -05:00
committed by GitHub
+8 -4
View File
@@ -149,10 +149,14 @@ GLOBAL_VAR_CONST(access_away_generic4, 208)
//Call this before using req_access or req_one_access directly
/obj/proc/gen_access()
//These generations have been moved out of /obj/New() because they were slowing down the creation of objects that never even used the access system.
for(var/a in text2access(req_access_txt))
req_access += a
for(var/b in text2access(req_one_access_txt))
req_one_access += b
if(!req_access)
req_access = list()
for(var/a in text2access(req_access_txt))
req_access += a
if(!req_one_access)
req_one_access = list()
for(var/b in text2access(req_one_access_txt))
req_one_access += b
/obj/proc/check_access(obj/item/I)
gen_access()