mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 03:02:38 +00:00
Removes unused optimization from SendSignal (#37551)
This commit is contained in:
@@ -121,17 +121,8 @@
|
|||||||
if(!comps)
|
if(!comps)
|
||||||
return NONE
|
return NONE
|
||||||
var/list/arguments = args.Copy(2)
|
var/list/arguments = args.Copy(2)
|
||||||
var/target = comps[/datum/component]
|
|
||||||
if(!length(target))
|
|
||||||
var/datum/component/C = target
|
|
||||||
if(!C.enabled)
|
|
||||||
return NONE
|
|
||||||
var/datum/callback/CB = C.signal_procs[sigtype]
|
|
||||||
if(!CB)
|
|
||||||
return NONE
|
|
||||||
return CB.InvokeAsync(arglist(arguments))
|
|
||||||
. = NONE
|
. = NONE
|
||||||
for(var/I in target)
|
for(var/I in comps[/datum/component])
|
||||||
var/datum/component/C = I
|
var/datum/component/C = I
|
||||||
if(!C.enabled)
|
if(!C.enabled)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user