add more verbose logging when a signal type is overriden (#18329)

This commit is contained in:
SteelSlayer
2022-07-12 20:10:03 +01:00
committed by GitHub
parent c42de93426
commit 694ba4be7d
+2 -1
View File
@@ -188,7 +188,8 @@
var/list/sig_types = islist(sig_type_or_types) ? sig_type_or_types : list(sig_type_or_types)
for(var/sig_type in sig_types)
if(!override && procs[target][sig_type])
stack_trace("[sig_type] overridden. Use override = TRUE to suppress this warning")
stack_trace("RegisterSignal overrode a signal without having 'override = TRUE' set.\n \
src: [src], signal type: [sig_type], target: [target], proc: [proctype].")
procs[target][sig_type] = proctype