Allows supplypacks with req_one_access to exist

This commit is contained in:
Atermonera
2019-06-04 09:14:20 -08:00
committed by VirgoBot
parent 1ddecf112e
commit 8e215ec10f
2 changed files with 10 additions and 1 deletions

View File

@@ -224,9 +224,17 @@ var/datum/controller/supply/supply_controller = new()
if(SP.access)
if(isnum(SP.access))
A.req_access = list(SP.access)
else if(islist(SP.access))
else if(islist(SP.access) && SP.one_access)
var/list/L = SP.access // access var is a plain var, we need a list
<<<<<<< HEAD
A.req_one_access = L.Copy() //VOREStation Edit: Lets make sense
=======
A.req_one_access = L.Copy()
A.req_access.Cut()
else if(islist(SP.access) && !SP.one_access)
var/list/L = SP.access
A.req_access = L.Copy()
>>>>>>> 995b581... Merge pull request #6190 from Heroman3003/modularizationofspaccess
else
log_debug("<span class='danger'>Supply pack with invalid access restriction [SP.access] encountered!</span>")