-Killed the updateDialog lag. I added a check to see if there were any mobs to update, if not it will stop checking until a user uses the machine again. I had to replace all the machine = src and machine = null with procs to help make it manageable. I believe this is one of the culprits causing the server to lag as the round goes on, as more players will interact with machines.

-Atmos delay is now based on active players, to help fight lag for massive player rounds.

-Changed some for(blah in world) loops to use the correct lists.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4958 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-10-25 19:15:51 +00:00
parent 2063c3715d
commit 6a2d78bc94
156 changed files with 403 additions and 367 deletions
+7 -7
View File
@@ -233,7 +233,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
//NOTE: graphic resources are loaded on client login
/obj/item/device/pda/attack_self(mob/user as mob)
user.machine = src
user.set_machine(src)
if(active_uplink_check(user))
return
@@ -438,14 +438,14 @@ var/global/list/obj/item/device/pda/PDAs = list()
if ( !(U.stat || U.restrained()) )
add_fingerprint(U)
U.machine = src
U.set_machine(src)
switch(href_list["choice"])
//BASIC FUNCTIONS===================================
if("Close")//Self explanatory
U.machine = null
U.unset_machine()
U << browse(null, "window=pda")
return
if("Refresh")//Refresh, goes to the end of the proc.
@@ -635,7 +635,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
else
U << "PDA not found."
else
U.machine = null
U.unset_machine()
U << browse(null, "window=pda")
return
@@ -656,11 +656,11 @@ var/global/list/obj/item/device/pda/PDAs = list()
cartridge.mode = mode
cartridge.unlock()
else//If can't interact.
U.machine = null
U.unset_machine()
U << browse(null, "window=pda")
return
else//If not in range or not using the pda.
U.machine = null
U.unset_machine()
U << browse(null, "window=pda")
return
@@ -676,7 +676,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(U.machine == src && href_list["skiprefresh"]!="1")//Final safety.
attack_self(U)//It auto-closes the menu prior if the user is not in range and so on.
else
U.machine = null
U.unset_machine()
U << browse(null, "window=pda")
return
+1 -1
View File
@@ -641,7 +641,7 @@ Code:
..()
if (!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
usr.machine = null
usr.unset_machine()
usr << browse(null, "window=pda")
return