Fixed legcuffs checking for being handcuffed instead of legcuffed when put on

This commit is contained in:
Heroman3003
2018-04-12 09:42:57 +10:00
committed by Heroman3003
parent 5743df3d37
commit 1ff2f26889
2 changed files with 43 additions and 43 deletions

View File

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

View File

@@ -786,7 +786,7 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
if(!legcuffed)
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)