mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Stop turning op table!
* Operating table and computer liked to literally spin around during initialization due to someone using `dir` as a loop counter without declaring it as a local variable.
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
/obj/machinery/optable/New()
|
/obj/machinery/optable/New()
|
||||||
..()
|
..()
|
||||||
for(dir in list(NORTH,EAST,SOUTH,WEST))
|
for(var/direction in list(NORTH,EAST,SOUTH,WEST))
|
||||||
computer = locate(/obj/machinery/computer/operating, get_step(src, dir))
|
computer = locate(/obj/machinery/computer/operating, get_step(src, direction))
|
||||||
if(computer)
|
if(computer)
|
||||||
computer.table = src
|
computer.table = src
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
/obj/machinery/computer/operating/New()
|
/obj/machinery/computer/operating/New()
|
||||||
..()
|
..()
|
||||||
for(dir in list(NORTH,EAST,SOUTH,WEST))
|
for(var/direction in list(NORTH,EAST,SOUTH,WEST))
|
||||||
table = locate(/obj/machinery/optable, get_step(src, dir))
|
table = locate(/obj/machinery/optable, get_step(src, direction))
|
||||||
if (table)
|
if (table)
|
||||||
table.computer = src
|
table.computer = src
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user