Compile fix for a fix for legcuffs.

This commit is contained in:
Chinsky
2014-06-12 02:11:40 +04:00
parent 238d5dfc2a
commit c56ab301d1
2 changed files with 7 additions and 7 deletions

View File

@@ -147,10 +147,10 @@
if(new_shoe_icon_state && new_shoe_name) if(new_shoe_icon_state && new_shoe_name)
for(var/obj/item/clothing/shoes/S in contents) for(var/obj/item/clothing/shoes/S in contents)
//world << "DEBUG: YUP! FOUND IT!" //world << "DEBUG: YUP! FOUND IT!"
if (S.chained == 1) if (istype(S,/obj/item/clothing/shoes/orange))
S.chained = 0 var/obj/item/clothing/shoes/orange/L = S
S.slowdown = SHOES_SLOWDOWN if (L.chained)
new /obj/item/weapon/handcuffs( src ) L.remove_cuffs()
S.icon_state = new_shoe_icon_state S.icon_state = new_shoe_icon_state
S.item_color = wash_color S.item_color = wash_color
S.name = new_shoe_name S.name = new_shoe_name

View File

@@ -84,9 +84,9 @@
name = "orange shoes" name = "orange shoes"
icon_state = "orange" icon_state = "orange"
item_color = "orange" item_color = "orange"
var/chained = null var/obj/item/weapon/handcuffs/chained = null
/obj/item/clothing/shoes/orange/proc/attach_cuffs(/obj/item/weapon/handcuffs/cuffs) /obj/item/clothing/shoes/orange/proc/attach_cuffs(var/obj/item/weapon/handcuffs/cuffs)
if (src.chained) return if (src.chained) return
cuffs.loc = src cuffs.loc = src
@@ -96,7 +96,7 @@
/obj/item/clothing/shoes/orange/proc/remove_cuffs() /obj/item/clothing/shoes/orange/proc/remove_cuffs()
if (!src.chained) return if (!src.chained) return
src.chained.loc = get_turf(src) src.chained.loc = get_turf(src)
src.slowdown = initial(slowdown) src.slowdown = initial(slowdown)
src.icon_state = "orange" src.icon_state = "orange"