Change +everything admin flag to not use ALL define (#39142)

* change +everything admin flag to not use ALL define

* add proc to handle max flag value changing update to db
This commit is contained in:
Jordie
2018-07-27 18:15:41 +12:00
committed by oranges
parent ab9cd85f77
commit 9dd566a586
6 changed files with 38 additions and 6 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
if(CONFIG_GET(flag/enable_localhost_rank) && !connecting_admin)
var/localhost_addresses = list("127.0.0.1", "::1")
if(isnull(address) || (address in localhost_addresses))
var/datum/admin_rank/localhost_rank = new("!localhost!", 65535, 16384, 65535) //+EVERYTHING -DBRANKS *EVERYTHING
var/datum/admin_rank/localhost_rank = new("!localhost!", R_EVERYTHING, R_DBRANKS, R_EVERYTHING) //+EVERYTHING -DBRANKS *EVERYTHING
new /datum/admins(localhost_rank, ckey, 1, 1)
//preferences datum - also holds some persistent data for the client (because we may as well keep these datums to a minimum)
prefs = GLOB.preferences_datums[ckey]