Code review fixes, no drop sanity check

This commit is contained in:
Arkatos1
2019-04-28 12:31:07 +02:00
parent ce5cd16b7e
commit 3181843ce4
+2 -1
View File
@@ -43,7 +43,6 @@
playsound(loc, 'sound/machines/click.ogg', 15, TRUE, -3)
opened = !opened
update_icon()
return
/obj/structure/extinguisher_cabinet/Destroy()
QDEL_NULL(has_extinguisher)
@@ -54,6 +53,8 @@
return
if(istype(O, /obj/item/extinguisher))
if(!has_extinguisher && opened)
if((O.flags & NODROP) || (flags & NODROP))
return
user.drop_item(O)
contents += O
has_extinguisher = O