Fixes unwrenching noise

This commit is contained in:
phil235
2014-05-24 19:34:06 +02:00
parent fd953a6a9d
commit a5a91eaffc
+4 -1
View File
@@ -11,6 +11,7 @@
var/ini_dir = null
var/state = 0
var/reinf = 0
var/disassembled = 0
// var/silicate = 0 // number of units of silicate
// var/icon/silicateIcon = null // the silicated icon
@@ -186,6 +187,7 @@
G = new (user.loc)
G.add_fingerprint(user)
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
disassembled = 1
qdel(src)
else
if(I.damtype == BRUTE || I.damtype == BURN)
@@ -304,7 +306,8 @@
/obj/structure/window/Destroy()
density = 0
air_update_turf(1)
playsound(src, "shatter", 70, 1)
if(!disassembled)
playsound(src, "shatter", 70, 1)
update_nearby_icons()
..()