mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Merge pull request #16768 from S34NW/buggy-consoles
Fixes operating and teleporter consoles getting odd dirs
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user