_SendSignal now sends arguments properly to INVOKE_ASYNC (#9550)

This commit is contained in:
mikomyazaki
2020-08-02 15:31:29 +01:00
committed by GitHub
parent 205368366a
commit cad5a637d7
2 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -290,14 +290,16 @@
if(!C.signal_enabled)
return NONE
var/proctype = C.signal_procs[src][sigtype]
return NONE | INVOKE_ASYNC(C, proctype, arguments)
arguments = list(C, proctype) + arguments
return NONE | INVOKE_ASYNC(arglist(arguments))
. = NONE
for(var/I in target)
var/datum/C = I
if(!C.signal_enabled)
continue
var/proctype = C.signal_procs[src][sigtype]
. |= INVOKE_ASYNC(C, proctype, arguments)
arguments = list(C, proctype) + arguments
. |= INVOKE_ASYNC(arglist(arguments))
// The type arg is casted so initial works, you shouldn't be passing a real instance into this
/**
+6
View File
@@ -0,0 +1,6 @@
author: mikomyazaki
delete-after: True
changes:
- backend: "_SendSignal now properly formats arguments for sending to components and elements."