mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
_SendSignal now sends arguments properly to INVOKE_ASYNC (#9550)
This commit is contained in:
@@ -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
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: mikomyazaki
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- backend: "_SendSignal now properly formats arguments for sending to components and elements."
|
||||
Reference in New Issue
Block a user