A few more fixes to Telecomms. For some reason some of the machines were STILL using the global list/machines variable. This should hopefully stop telecomms from fucking over the Master Controller's machinery subroutine.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4117 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2012-07-19 18:25:03 +00:00
parent 1ce01f34b9
commit dea387876d

View File

@@ -33,9 +33,9 @@
if(0)
dat += "<br>[temp]<br><br>"
dat += "<br>Current Network: <a href='?src=\ref[src];network=1'>[network]</a><br>"
if(machines.len)
if(machinelist.len)
dat += "<br>Detected Network Entities:<ul>"
for(var/obj/machinery/telecomms/T in machines)
for(var/obj/machinery/telecomms/T in machinelist)
dat += "<li><a href='?src=\ref[src];viewmachine=[T.id]'>\ref[T] [T.name]</a> ([T.id])</li>"
dat += "</ul>"
dat += "<br><a href='?src=\ref[src];operation=release'>\[Flush Buffer\]</a>"
@@ -74,7 +74,7 @@
if(href_list["viewmachine"])
screen = 1
for(var/obj/machinery/telecomms/T in machines)
for(var/obj/machinery/telecomms/T in machinelist)
if(T.id == href_list["viewmachine"])
SelectedMachine = T
break
@@ -83,25 +83,25 @@
switch(href_list["operation"])
if("release")
machines = list()
machinelist = list()
screen = 0
if("mainmenu")
screen = 0
if("probe")
if(machines.len > 0)
if(machinelist.len > 0)
temp = "<font color = #D70B00>- FAILED: CANNOT PROBE WHEN BUFFER FULL -</font color>"
else
for(var/obj/machinery/telecomms/T in range(25, src))
if(T.network == network)
machines.Add(T)
machinelist.Add(T)
if(!machines.len)
if(!machinelist.len)
temp = "<font color = #D70B00>- FAILED: UNABLE TO LOCATE NETWORK ENTITIES IN \[[network]\] -</font color>"
else
temp = "<font color = #336699>- [machines.len] ENTITIES LOCATED & BUFFERED -</font color>"
temp = "<font color = #336699>- [machinelist.len] ENTITIES LOCATED & BUFFERED -</font color>"
screen = 0