From cd2b5e761d624ab64a0f9ffca9c1803276336d8e Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Mon, 13 Oct 2014 11:21:37 +1030 Subject: [PATCH] Fixes being unable to knock on windows. --- code/game/objects/structures/window.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index cad2907ac77..4fb2c56d77e 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -114,15 +114,15 @@ new /obj/item/weapon/shard(loc) if(reinf) new /obj/item/stack/rods(loc) del(src) - else if (istype(usr,/mob/living/carbon/human)) - - var/mob/living/carbon/human/H = usr - - if(H.species.can_shred(H)) - attack_generic(H,25) - return else if (usr.a_intent == "hurt") + + if (istype(usr,/mob/living/carbon/human)) + var/mob/living/carbon/human/H = usr + if(H.species.can_shred(H)) + attack_generic(H,25) + return + playsound(src.loc, 'sound/effects/glassknock.ogg', 80, 1) usr.visible_message("\red [usr.name] bangs against the [src.name]!", \ "\red You bang against the [src.name]!", \