allow COMSIG_ATOM_UPDATE_OVERLAY responders to add managed overlays directly (#29091)

This commit is contained in:
warriorstar-orion
2025-04-26 18:12:14 +00:00
committed by GitHub
parent fc9958dac8
commit 9e0f79358a
5 changed files with 11 additions and 30 deletions
+2 -2
View File
@@ -555,7 +555,6 @@
else
managed_overlays = new_overlays
add_overlay(new_overlays)
SEND_SIGNAL(src, COMSIG_ATOM_UPDATE_OVERLAYS)
SEND_SIGNAL(src, COMSIG_ATOM_UPDATED_ICON, updates)
@@ -567,7 +566,8 @@
/// Updates the overlays of the atom. It has to return a list of overlays if it can't call the parent to create one. The list can contain anything that would be valid for the add_overlay proc: Images, mutable appearances, icon states...
/atom/proc/update_overlays()
PROTECTED_PROC(TRUE)
return list()
. = list()
SEND_SIGNAL(src, COMSIG_ATOM_UPDATE_OVERLAYS, .)
/atom/proc/relaymove()
return