Optimized radio code broadcasting code.

Rather than calling a function on every single radio object which expensively collects hearers(in closets etc.), the proc will now instead build a list of radios. This list is then passed to another proc, which iterates through all clients in the world, and checks if the client's mob can hear the message.

Note that I did shallow testing, but deeper issues may still be present with stuff like pAIs which I wasn't able to test on my single player server. If any other problems are found, please notify me.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4019 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
CIB123@gmail.com
2012-07-09 15:16:00 +00:00
parent ae23259f3e
commit b687b75bca
7 changed files with 80 additions and 59 deletions

View File

@@ -95,6 +95,8 @@
host = key
world.update_status()
client_list[ckey] = src
..() //calls mob.Login()
//Admin Authorisation
@@ -109,6 +111,8 @@
//DISCONNECT//
//////////////
/client/Del()
client_list.Remove(ckey)
spawn(0)
if(holder)
del(holder)