Removes code treating actions as a lazy list (#24971)

* this doesn't need to be lazy

* fix some small things
This commit is contained in:
Luc
2024-04-03 14:08:26 +00:00
committed by GitHub
parent 629522d2c7
commit 655d170ae2
3 changed files with 6 additions and 11 deletions
+1 -6
View File
@@ -179,12 +179,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
if(ismob(loc))
var/mob/m = loc
m.unEquip(src, 1)
// actions clear themselves from the list on cut
if(islist(actions))
for(var/datum/action/A as anything in actions)
qdel(A)
if(!isnull(actions))
actions.Cut()
QDEL_LIST_CONTENTS(actions)
master = null
return ..()