Merge pull request #16768 from S34NW/buggy-consoles

Fixes operating and teleporter consoles getting odd dirs
This commit is contained in:
variableundefined
2021-09-23 18:12:06 -05:00
committed by GitHub
2 changed files with 4 additions and 9 deletions
+3 -5
View File
@@ -25,11 +25,9 @@
/obj/machinery/computer/operating/New()
..()
for(dir in list(NORTH,EAST,SOUTH,WEST))
table = locate(/obj/machinery/optable, get_step(src, dir))
if(table)
table.computer = src
break
table = locate(/obj/machinery/optable, orange(1, src))
if(table)
table.computer = src
/obj/machinery/computer/operating/Destroy()
if(table)
+1 -4
View File
@@ -41,10 +41,7 @@
/obj/machinery/computer/teleporter/proc/link_power_station()
if(power_station)
return
for(dir in list(NORTH,EAST,SOUTH,WEST))
power_station = locate(/obj/machinery/teleport/station, get_step(src, dir))
if(power_station)
break
power_station = locate(/obj/machinery/teleport/station, orange(1, src))
return power_station
/obj/machinery/computer/teleporter/attackby(obj/item/I, mob/living/user, params)