Optimization to canister's update_icon

Shamelessly rips off the APC's sweet ass method of dealing with overlay updates in update_icon and applies them to canisters, helping with the odd occasion where canister's starting chewing through cpu cycles.
This commit is contained in:
clusterfack
2015-05-17 03:55:27 -05:00
parent 3b411f8281
commit f4406d1a87
2 changed files with 91 additions and 22 deletions

View File

@@ -254,8 +254,9 @@ var/global/floorIsLava = 0
usr << "Error: you are not an admin!"
return
checkSessionKey()
var/cid = input("Type computer ID", "CID", 0)
usr << link(getVGPanel("rapsheet",admin=1,query=list("cid"=cid)))
var/cid = input("Type computer ID", "CID", 0) as num | null
if(cid)
usr << link(getVGPanel("rapsheet",admin=1,query=list("cid"=cid)))
//usr << link("[config.vgws_base_url]/index.php/rapsheet/?s=[sessKey]&cid=[cid]")
return