Merge pull request #10710 from xxalpha/cablecoilbackpack

Fixed storage not updating when joining cable coils.
This commit is contained in:
Jordie
2015-07-25 19:12:26 +10:00
4 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -425,4 +425,7 @@ var/list/blood_splatter_icons = list()
return
/atom/proc/storage_contents_dump_act(obj/item/weapon/storage/src_object, mob/user)
return 0
return 0
//This proc is called on the location of an atom when the atom is Destroy()'d
/atom/proc/handle_atom_del(atom/A)
+2
View File
@@ -76,6 +76,8 @@
/atom/movable/Destroy()
. = ..()
if(loc)
loc.handle_atom_del(src)
if(reagents)
qdel(reagents)
for(var/atom/movable/AM in contents)
-3
View File
@@ -27,7 +27,6 @@
/obj/item/stack/Destroy()
if (usr && usr.machine==src)
usr << browse(null, "window=stack")
src.loc = null
..()
/obj/item/stack/examine(mob/user)
@@ -186,8 +185,6 @@
if(is_cyborg)
return source.energy < cost
if (amount < 1)
if(usr)
usr.unEquip(src, 1)
qdel(src)
return 1
return 0
@@ -469,3 +469,6 @@
if(verbs.Find(/obj/item/weapon/storage/verb/quick_empty))
quick_empty()
/obj/item/weapon/storage/handle_atom_del(atom/A)
if(A in contents)
remove_from_storage(A,null)