mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
515 Compatibility (#19636)
* 515 compat * double spaces * Callback documentation, aa review * spacing * NAMEOF_STATIC * big beta
This commit is contained in:
@@ -184,7 +184,7 @@ GLOBAL_LIST_INIT(conveyor_switches, list())
|
||||
// spawn hundreds of callbacks for the same thing.
|
||||
// (they don't behave weirdly or anything, just eat CPU)
|
||||
affecting.Add(AM)
|
||||
addtimer(CALLBACK(src, .proc/move_thing, AM), slow_factor)
|
||||
addtimer(CALLBACK(src, PROC_REF(move_thing), AM), slow_factor)
|
||||
CHECK_TICK
|
||||
|
||||
// Use speedy process only if the belt is actually in use, and use normal process otherwise.
|
||||
@@ -274,7 +274,7 @@ GLOBAL_LIST_INIT(conveyor_switches, list())
|
||||
if(C.id != id)
|
||||
return
|
||||
conveyors += C
|
||||
RegisterSignal(C, COMSIG_PARENT_QDELETING, .proc/unlink_conveyer) // so it GCs properly
|
||||
RegisterSignal(C, COMSIG_PARENT_QDELETING, PROC_REF(unlink_conveyer)) // so it GCs properly
|
||||
|
||||
/obj/machinery/conveyor_switch/proc/unlink_conveyer(obj/machinery/conveyor/C)
|
||||
conveyors -= C
|
||||
|
||||
@@ -1167,7 +1167,7 @@
|
||||
/obj/structure/disposalpipe/trunk/Initialize(mapload)
|
||||
. = ..()
|
||||
dpdir = dir
|
||||
addtimer(CALLBACK(src, .proc/getlinked), 0) // This has a delay of 0, but wont actually start until the MC is done
|
||||
addtimer(CALLBACK(src, PROC_REF(getlinked)), 0) // This has a delay of 0, but wont actually start until the MC is done
|
||||
|
||||
update()
|
||||
return
|
||||
@@ -1299,7 +1299,7 @@
|
||||
|
||||
/obj/structure/disposaloutlet/Initialize(mapload)
|
||||
. = ..()
|
||||
addtimer(CALLBACK(src, .proc/setup), 0) // Wait of 0, but this wont actually do anything until the MC is firing
|
||||
addtimer(CALLBACK(src, PROC_REF(setup)), 0) // Wait of 0, but this wont actually do anything until the MC is firing
|
||||
|
||||
|
||||
/obj/structure/disposaloutlet/proc/setup()
|
||||
|
||||
Reference in New Issue
Block a user