Merge pull request #5164 from Heroman3003/legcuffies

Fixed legcuffs not being placeable on handcuffed people
This commit is contained in:
Anewbe
2018-04-12 17:43:37 -05:00
committed by GitHub
2 changed files with 43 additions and 43 deletions

View File

@@ -265,7 +265,7 @@ var/last_chew = 0
place_legcuffs(user, user) place_legcuffs(user, user)
return return
if(!C.handcuffed) if(!C.legcuffed)
if (C == user) if (C == user)
place_legcuffs(user, user) place_legcuffs(user, user)
return return

View File

@@ -786,7 +786,7 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
if(!legcuffed) if(!legcuffed)
return //Not legcuffed, why bother. return //Not legcuffed, why bother.
overlays_standing[LEGCUFF_LAYER] = handcuffed.make_worn_icon(body_type = species.get_bodytype(), slot_name = slot_legcuffed_str, default_icon = INV_LCUFF_DEF_ICON, default_layer = LEGCUFF_LAYER) overlays_standing[LEGCUFF_LAYER] = legcuffed.make_worn_icon(body_type = species.get_bodytype(), slot_name = slot_legcuffed_str, default_icon = INV_LCUFF_DEF_ICON, default_layer = LEGCUFF_LAYER)
apply_layer(LEGCUFF_LAYER) apply_layer(LEGCUFF_LAYER)