[MIRROR] Make req_[one_]access lazy

This commit is contained in:
Chompstation Bot
2021-06-14 17:35:25 +00:00
parent 7e0da20bae
commit b9a1195de7
3 changed files with 17 additions and 22 deletions

View File

@@ -205,13 +205,19 @@ SUBSYSTEM_DEF(supply)
else if(islist(SP.access) && SP.one_access)
var/list/L = SP.access // access var is a plain var, we need a list
A.req_one_access = L.Copy()
<<<<<<< HEAD
if(A.req_access) //Chompstation Edit (TODO: Figure out why the fuck this works for others but not us)
A.req_access.Cut() //Chompstation Edit
A.req_access = null
||||||| parent of 8973063282... Merge pull request #10640 from VOREStation/upstream-merge-8122
A.req_access = null
=======
LAZYCLEARLIST(A.req_access)
>>>>>>> 8973063282... Merge pull request #10640 from VOREStation/upstream-merge-8122
else if(islist(SP.access) && !SP.one_access)
var/list/L = SP.access
A.req_access = L.Copy()
A.req_one_access = null
LAZYCLEARLIST(A.req_one_access)
else
log_debug("<span class='danger'>Supply pack with invalid access restriction [SP.access] encountered!</span>")