Skip to content

Commit

Permalink
Merge pull request #3466 from ARF-SS13/maybe-just-
Browse files Browse the repository at this point in the history
Update preferences.dm
  • Loading branch information
Tk420634 authored Oct 16, 2023
2 parents 52605de + a4a7c23 commit 3dca4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4019,7 +4019,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
//delete any existing prosthetic limbs to make sure no remnant prosthetics are left over - But DO NOT delete those that are species-related
for(var/obj/item/bodypart/part in character.bodyparts)
if(part.status == BODYPART_ROBOTIC && !part.render_like_organic)
qdel(part)
QDEL_NULL(part)
character.regenerate_limbs() //regenerate limbs so now you only have normal limbs
for(var/modified_limb in modified_limbs)
var/modification = modified_limbs[modified_limb][1]
Expand All @@ -4039,7 +4039,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(prosthetic_type != "prosthetic") //lets just leave the old sprites as they are
new_limb.icon = wrap_file("icons/mob/augmentation/cosmetic_prosthetic/[prosthetic_type].dmi")
new_limb.replace_limb(character)
qdel(old_part)
QDEL_NULL(old_part)

SEND_SIGNAL(character, COMSIG_HUMAN_PREFS_COPIED_TO, src, icon_updates, roundstart_checks)

Expand Down

0 comments on commit 3dca4b8

Please sign in to comment.