mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 07:03:30 +01:00
515 Compatibility (#19636)
* 515 compat * double spaces * Callback documentation, aa review * spacing * NAMEOF_STATIC * big beta
This commit is contained in:
@@ -320,7 +320,7 @@
|
||||
|
||||
user.drop_item()
|
||||
I.forceMove(src)
|
||||
RegisterSignal(I, COMSIG_PARENT_QDELETING, .proc/clear_stored_item) //ensure proper GC'ing
|
||||
RegisterSignal(I, COMSIG_PARENT_QDELETING, PROC_REF(clear_stored_item)) //ensure proper GC'ing
|
||||
store = I
|
||||
to_chat(user, "<span class='notice'>You hide [I] in [name].</span>")
|
||||
return TRUE
|
||||
|
||||
@@ -249,7 +249,7 @@
|
||||
if(!printing)
|
||||
printing = TRUE
|
||||
visible_message("<span class='notice'>[src] begins to hum as it warms up its printing drums.</span>")
|
||||
addtimer(CALLBACK(src, .proc/print_book), 5 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(print_book)), 5 SECONDS)
|
||||
else
|
||||
playsound(src, 'sound/machines/synth_no.ogg', 15, TRUE)
|
||||
if("toggle_binder_category")
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
disconnect() //clear references to old computer, we have to unregister signals
|
||||
computer = library_computer
|
||||
RegisterSignal(library_computer, COMSIG_PARENT_QDELETING, .proc/disconnect)
|
||||
RegisterSignal(library_computer, COMSIG_PARENT_QDELETING, PROC_REF(disconnect))
|
||||
return TRUE
|
||||
|
||||
/obj/item/barcodescanner/proc/disconnect()
|
||||
|
||||
Reference in New Issue
Block a user