Fixes internal storage on ground

Fixes not being able to remove items from internal storage when the
master item is on the ground.
This commit is contained in:
Mike
2014-05-10 23:41:48 -04:00
parent 70ac5726dd
commit cee43ffbf3
3 changed files with 26 additions and 9 deletions

View File

@@ -118,7 +118,8 @@
return
// Allows you to click on a box's contents, if that box is on the ground, but no deeper than that
if(isturf(A) || isturf(A.loc) || (A.loc && isturf(A.loc.loc)))
sdepth = A.storage_depth_turf()
if(isturf(A) || isturf(A.loc) || (sdepth != -1 && sdepth <= 1))
next_move = world.time + 10
if(A.Adjacent(src)) // see adjacent.dm