Skip to content

Commit

Permalink
Merge pull request ParadiseSS13#13315 from AffectedArc07/tcomms-link-fix
Browse files Browse the repository at this point in the history
Fixes being unable to link tcomms machines
  • Loading branch information
Fox-McCloud authored Apr 18, 2020
2 parents a872eaf + e1892a0 commit 4790826
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions code/game/machinery/telecomms/machine_interactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,15 @@
if(href_list["link"])

if(P)
if(P.buffer && P.buffer != src)
if(istype(P, /obj/machinery/telecomms))
var/obj/machinery/telecomms/TCM = P.buffer
if(!(src in TCM.links))
TCM.links.Add(src)
var/obj/machinery/telecomms/T = P.buffer
if(istype(T) && T != src)
if(!(src in T.links))
T.links += src

if(!(P.buffer in src.links))
src.links.Add(P.buffer)
if(!(T in links))
links += T

temp = "<font color = #666633>-% Successfully linked with \ref[P.buffer] [P.buffer.name] %-</font>"
temp = "<font color = #666633>-% Successfully linked with [(T.UID())] [T.name] %-</font>"

else
temp = "<font color = #666633>-% Unable to acquire buffer %-</font>"
Expand Down

0 comments on commit 4790826

Please sign in to comment.