515 Compatibility (#19636)

* 515 compat

* double spaces

* Callback documentation, aa review

* spacing

* NAMEOF_STATIC

* big beta
This commit is contained in:
S34N
2022-11-08 23:08:40 +00:00
committed by GitHub
parent 2e7e556383
commit 667dd5d4ac
378 changed files with 928 additions and 919 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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()