fix for admins not being applied successfully on round startup, added some resource caching i forgot about before

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-10-09 23:54:31 +10:00
parent 6365459bde
commit 773732c609
3 changed files with 8 additions and 18 deletions

View File

@@ -103,8 +103,13 @@
host = key
world.update_status()
//calls mob.Login()
..()
//Admin Authorisation
var/datum/admins/Admin_Obj = admins[ckey]
if(istype(Admin_Obj))
admin_list += src
holder = Admin_Obj
holder.owner = src
holder.state = null
//makejson()
@@ -114,20 +119,6 @@
src << "<span class='alert'>[html_encode(custom_event_msg)]</span>"
src << "<br>"
//Admin Authorisation
var/datum/admins/Admin_Obj = admins[ckey]
var/adminlist = ""
for(var/adminkey in admins)
adminlist += adminkey + ", "
world << adminlist
if(istype(Admin_Obj))
admin_list += src
holder = Admin_Obj
holder.owner = src
holder.state = null
world << ckey + " set as admin correctly"
..() //calls mob.Login()
if(holder)

View File

@@ -2,7 +2,6 @@
/mob/proc/update_Login_details()
//trigger admin holder updates. This is hear as all Login() calls this proc.
if(client.holder)
world << "calling update admin..."
client.update_admins(client.holder.rank)
//Multikey checks and logging
@@ -29,7 +28,6 @@
log_access("Notice: [key_name(src)] has the same [matches] as [key_name(M)] (no longer logged in).")
/mob/Login()
world << "/mob/Login()"
player_list |= src
update_Login_details()
world.update_status()

View File

@@ -405,6 +405,7 @@ var/list/slot_equipment_priority = list( \
'html/wrench-screwdriver.png',
'html/spell-check.png',
'html/burn-exclamation.png',
'html/tg-notif.png',
'html/chevron.png',
'html/chevron-expand.png',
'html/changelog.css',