Merge pull request #7105 from VOREStation/pol-telenano

Redo teleporter control in nanoui
This commit is contained in:
Atermonera
2020-05-10 15:39:29 -07:00
committed by GitHub
4 changed files with 185 additions and 168 deletions
@@ -147,11 +147,11 @@ Frequency:
if(com)
break
break
if (istype(com, /obj/machinery/computer/teleporter) && com.locked && !com.one_time_use)
if (istype(com, /obj/machinery/computer/teleporter) && com.teleport_control.locked && !com.one_time_use)
if(R.icon_state == "tele1")
L["[com.id] (Active)"] = com.locked
L["[com.id] (Active)"] = com.teleport_control.locked
else
L["[com.id] (Inactive)"] = com.locked
L["[com.id] (Inactive)"] = com.teleport_control.locked
var/list/turfs = list( )
for(var/turf/T in orange(10))
if(T.x>world.maxx-8 || T.x<8) continue //putting them at the edge is dumb