Items now properly unset the IN_STORAGE flag when removed from storage. (#57660)

This commit is contained in:
Timberpoes
2021-03-13 13:45:27 +00:00
committed by GitHub
parent a88f80eb3f
commit 2dfc3c7300
@@ -122,11 +122,12 @@
var/list/seeing_mobs = can_see_contents()
for(var/mob/M in seeing_mobs)
M.client.screen -= AM
if(ismob(parent.loc) && isitem(AM))
var/obj/item/I = AM
var/mob/M = parent.loc
I.dropped(M, TRUE)
I.item_flags &= ~IN_STORAGE
if(isitem(AM))
var/obj/item/removed_item = AM
removed_item.item_flags &= ~IN_STORAGE
if(ismob(parent.loc))
var/mob/carrying_mob = parent.loc
removed_item.dropped(carrying_mob, TRUE)
if(new_location)
//Reset the items values
_removal_reset(AM)