procs
This commit is contained in:
@@ -230,7 +230,7 @@
|
||||
|
||||
if(toggleOn)
|
||||
if(last_program && last_program != offline_program)
|
||||
addtimer(CALLBACK(src, .proc/load_program, last_program, TRUE), 25)
|
||||
addtimer(CALLBACK(src, PROC_REF(load_program), last_program, TRUE), 25)
|
||||
active = TRUE
|
||||
else
|
||||
last_program = program
|
||||
@@ -290,7 +290,7 @@
|
||||
S.flags_1 |= NODECONSTRUCT_1
|
||||
effects = list()
|
||||
|
||||
addtimer(CALLBACK(src, .proc/finish_spawn), 30)
|
||||
addtimer(CALLBACK(src, PROC_REF(finish_spawn)), 30)
|
||||
|
||||
/obj/machinery/computer/holodeck/proc/finish_spawn()
|
||||
var/list/added = list()
|
||||
@@ -310,7 +310,7 @@
|
||||
// Emagging a machine creates an anomaly in the derez systems.
|
||||
if(O && (obj_flags & EMAGGED) && !stat && !forced)
|
||||
if((ismob(O) || ismob(O.loc)) && prob(50))
|
||||
addtimer(CALLBACK(src, .proc/derez, O, silent), 50) // may last a disturbingly long time
|
||||
addtimer(CALLBACK(src, PROC_REF(derez), O, silent), 50) // may last a disturbingly long time
|
||||
return
|
||||
|
||||
spawned -= O
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
|
||||
/turf/open/floor/holofloor/carpet/Initialize(mapload)
|
||||
. = ..()
|
||||
addtimer(CALLBACK(src, /atom/.proc/update_icon), 1)
|
||||
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon)), 1)
|
||||
|
||||
/turf/open/floor/holofloor/carpet/update_icon()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user