•Fixed bug with fireax (who corrected it from fireaxe? Thanks :3) closets becoming invisible.

Thanks, LJ.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2936 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
polyxenitopalidou@gmail.com
2012-01-10 13:06:10 +00:00
parent 2f2c4e98a6
commit 6db3b3239b
3 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -30,9 +30,13 @@
user << "\blue You disable the locking modules."
update_icon()
return
if(istype(O, /obj/item/weapon))
else if(istype(O, /obj/item/weapon))
var/obj/item/weapon/W = O
if(src.smashed)
if(src.smashed || src.localopened)
if(localopened)
localopened = 0
icon_state = text("fireaxe[][][][]closing",hasaxe,src.localopened,src.hitstaken,src.smashed)
spawn(10) update_icon()
return
else
playsound(user, 'Glasshit.ogg', 100, 1) //We don't want this playing every time