[MIRROR] some GC things (#8507)

Co-authored-by: Novacat <35587478+Novacat@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-06-09 21:13:19 +02:00
committed by GitHub
co-authored by Novacat Kashargul
parent 0ab421aabe
commit 8ea9a9a1aa
5 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -76,7 +76,7 @@
var/obj/item/weapon/robot_module/robot/robot_type = new module_type(robot)
robot.emag_items = 1
if(!istype(robot_type, /obj/item/weapon/robot_module/robot/))
robot.Destroy()
qdel(robot)
break
var/list/all_modules = robot.module.modules
all_modules += robot.module.emag
@@ -134,7 +134,7 @@
target.module.synths.Add(item_with_matter.plastic)
else
item_with_matter.plastic = target.module.synths[found]
robot.Destroy()
qdel(robot)
if(MODIFIY_ROBOT_MODULE_REMOVE)
while(TRUE)
var/list/active_modules = target.module.modules
@@ -326,7 +326,7 @@
target.hud_used.update_robot_modules_display(TRUE)
target.modtype = initial(target.modtype)
target.module.Reset(target)
target.module.Destroy()
qdel(target.module)
target.modtype = selected_module
var/module_type = robot_modules[selected_module]
target.transform_with_anim()