mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Merge pull request #25805 from kevinz000/patch-118
Hopefully fixes gateways
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user