TG: - glass airlocks will now play the proper sound on closing

Revision: r3209
Author: 	 LastBatt...@hotmail.com
This commit is contained in:
Ren Erthilo
2012-04-24 21:39:04 +01:00
parent f8f1ec8391
commit 8a41837df4
+4 -1
View File
@@ -288,7 +288,10 @@ Airlock index -> wire color are { 9, 4, 6, 7, 5, 8, 1, 2, 3 }.
return
..()
use_power(50)
playsound(src.loc, 'airlock.ogg', 30, 1)
if(istype(src, /obj/machinery/door/airlock/glass))
playsound(src.loc, 'windowdoor.ogg', 30, 1)
else
playsound(src.loc, 'airlock.ogg', 30, 1)
var/obj/structure/window/killthis = (locate(/obj/structure/window) in get_turf(src))
if(killthis)
killthis.ex_act(2)//Smashin windows