Always reset the layer of things removed from storage

Fixes #6470
This commit is contained in:
MrPerson
2014-12-19 09:42:06 -08:00
parent c9c14feec6
commit 2b763f18c1
2 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -119,7 +119,7 @@
if (istype(src.loc, /obj/item/weapon/storage))
//If the item is in a storage item, take it out
var/obj/item/weapon/storage/S = src.loc
S.remove_from_storage(src)
S.remove_from_storage(src, user.loc)
src.throwing = 0
if (loc == user)
@@ -304,16 +304,10 @@
if(M.client)
M.client.screen -= W
if(new_location)
if(ismob(loc))
W.dropped(usr)
if(ismob(new_location))
W.layer = 20
else
W.layer = initial(W.layer)
W.loc = new_location
else
W.loc = get_turf(src)
if(ismob(loc))
W.dropped(usr)
W.layer = initial(W.layer)
W.loc = new_location
if(usr)
orient2hud(usr)