mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +01:00
Trying stuff to get conveyors to initialize with the map
This commit is contained in:
@@ -211,17 +211,24 @@
|
||||
speed_process = 1
|
||||
|
||||
|
||||
obj/machinery/conveyor_switch/New(newloc, newid)
|
||||
/obj/machinery/conveyor_switch/New(newloc, newid)
|
||||
..(newloc)
|
||||
if(!id)
|
||||
id = newid
|
||||
update()
|
||||
|
||||
spawn(5) // allow map load
|
||||
/* spawn(5) // allow map load
|
||||
conveyors = list()
|
||||
for(var/obj/machinery/conveyor/C in machines)
|
||||
for(var/obj/machinery/conveyor/C in machines) //This works if it's: `C in world` , but that's bad practice. Best to try to fix it.
|
||||
if(C.id == id)
|
||||
conveyors += C
|
||||
conveyors += C */ //Moving this to initialise to see if it gets around the bug... do we need the spawn thing? Let's find out.
|
||||
|
||||
/obj/machinery/conveyor_switch/initialize() //This whole thing is new
|
||||
conveyors = list()
|
||||
for(var/obj/machinery/conveyor/C in machines)
|
||||
if(C.id == id)
|
||||
conveyors += C
|
||||
|
||||
|
||||
// update the icon depending on the position
|
||||
|
||||
|
||||
Reference in New Issue
Block a user