Skip to content

Commit

Permalink
Cleans up carbons (tgstation#29179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss authored and AnturK committed Jul 12, 2017
1 parent ea132f3 commit 8c7fdf8
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@
blood_volume = BLOOD_VOLUME_NORMAL

/mob/living/carbon/Initialize()
. = ..()
create_reagents(1000)
update_body_parts() //to update the carbon's new bodyparts appearance
..()

/mob/living/carbon/Destroy()
for(var/guts in internal_organs)
qdel(guts)
for(var/atom/movable/food in stomach_contents)
qdel(food)
for(var/BP in bodyparts)
qdel(BP)
for(var/imp in implants)
qdel(imp)
bodyparts = list()
QDEL_LIST(internal_organs)
QDEL_LIST(stomach_contents)
QDEL_LIST(bodyparts)
QDEL_LIST(implants)
remove_from_all_data_huds()
if(dna)
qdel(dna)
QDEL_NULL(dna)
return ..()

/mob/living/carbon/relaymove(mob/user, direction)
Expand Down

0 comments on commit 8c7fdf8

Please sign in to comment.