Merge pull request #25805 from kevinz000/patch-118

Hopefully fixes gateways
This commit is contained in:
duncathan salt
2017-04-03 22:38:03 -06:00
committed by GitHub
+6 -9
View File
@@ -16,8 +16,13 @@ var/obj/machinery/gateway/centerstation/the_gateway = null
var/can_link = FALSE //Is this the centerpiece?
/obj/machinery/gateway/Initialize()
..()
randomspawns = awaydestinations
update_icon()
if(!istype(src, /obj/machinery/gateway/centerstation) && !istype(src, /obj/machinery/gateway/centeraway))
switch(dir)
if(SOUTH,SOUTHEAST,SOUTHWEST)
density = 0
..()
/obj/machinery/gateway/proc/toggleoff()
for(var/obj/machinery/gateway/G in linked)
@@ -49,14 +54,6 @@ var/obj/machinery/gateway/centerstation/the_gateway = null
ready = TRUE
return ready
/obj/machinery/gateway/Initialize()
..()
update_icon()
switch(dir)
if(SOUTH,SOUTHEAST,SOUTHWEST)
density = 0
/obj/machinery/gateway/update_icon()
if(active)
icon_state = "on"